Profitbase / PowerBI-visuals-FinancialReportingMatrix

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

Formula not working #535

Closed alex6926 closed 6 months ago

alex6926 commented 6 months ago

Hi!

I created a formula which is not working and I can not understand why.

IF(Measure Var vs BP>0 && Row().style =="stylesSubtotal" || Row().style =="stylesTotal" || Row().style =="custom1","🟢", IF(Measure Var vs BP<0 && Row().style =="stylesSubtotal" || Row().style =="stylesTotal" || Row().style =="custom1","🔴",""))

Basically, I'd like to display a green or red spot depending on the variation vs business plan, only when row style is Subtotal, Total or Custom 1.

It's working for Subtotal, but unfortunately, not for the two other row styles (green spots for Total and Custom 1 even if the variations are negative) :

image

For the column with the color spots, I created a new row in which I put the formula.

Thanks in advance for the help,

Alex