microsoft / Analysis-Services

Git repo for Analysis Services samples and community projects
MIT License
608 stars 417 forks source link

BPA Rules : Provide format string for measures should work with Dynamic format expression #229

Open morelgeorge opened 1 year ago

morelgeorge commented 1 year ago

Hello, since Dynamic format strings were presented for measures in PowerBI Desktop, I believe that BPA Rule [Formatting] Provide format string for measures should be updated by this way: not IsHidden and not Table.IsHidden and string.IsNullOrWhitespace(FormatString) and string.IsNullOrWhitespace(FormatStringExpression)

Currently it validates only FormatString attribute which is empty when you are using dynamic format string in your measure. When you are using danymic format string then FormatStringExpression attribute is used.