Profitbase / PowerBI-visuals-FinancialReportingMatrix

Power BI Custom Visual for Financial Reporting
65 stars 23 forks source link

Conditional Format Column : condition possible on ColumnHeader ? #590

Closed gaeldevys closed 1 month ago

gaeldevys commented 1 month ago

Dear Anders,

I tried to use CF (condition formatting) on all columns, coming from a "Calculation Group", using a condition based on "ColumnHeader". It doesn't seem to work even if the condition is written: a) ColumnHeader()=="YoY%" b) ColumnHeader()=='YoY%'

2024-03-27_10h35_32

image

My aim is to use CF to avoid "add column conditional formatting", which is relative to a context (month) and thus not dynamic when the month is changing, unless you have a trick to let that function 'relative' and not 'absolute'

Thanks in advance for your tips. Best regards

Gael

AndersAano commented 1 month ago

Hi @gaeldevys,

This is something we have been asked before, and we are currently finalizing a new version which will address this issue. A new feature will allow you to specify that you want to treat columns as measures. If you turn that ON, you will be able to right-click the "YoY%" column and add conditional formatting to that.

It would then be applied to all "YoY%"-columns as is if was a measure.

I don't have an exact date for when this is done, but I'll come back as soon as we have the version ready in beta.

Best regards Anders

AndersAano commented 1 month ago

Just to show you what we have done:

With the option turned OFF (which is the case for the current version in production):

image

With the option turned ON, in the upcoming version:

image

gaeldevys commented 1 month ago

Dear Anders

It looks nice: looking forward to using it soon. Thanks a lot for your time.