Forum Discussion

chrisbrigg's avatar
chrisbrigg
Frequent Visitor
6 years ago
Solved

Conditional Formatting not working on all rows

Hello, Using Power BI Report Server (Sept 2019) I recently set up a calculated measure called Variance:   CALCULATE(SUM('ACCT_BAL1'[ACCT_BAL]) - SUM('ACCT_BAL2'[ACCT_BAL]))     ACCT_BAL field...
  • chrisbrigg's avatar
    chrisbrigg
    6 years ago

    This issue came up again recently when the customer asked to see decimal numbers instead of whole numbers. The conditional formatting was again not applying to the correct condtions. For example, my calculated mesaure (deimal number) displayed 0.00 but the conditional formatting did not pick up on it.

     

    Going back to d_gosbell statement about the foating decimal, I found that even though the calculated measure displayed "0.00", when I opened up the number of decimal places to 15, I found that true number to be "0.000000000400000". This stemmed from the two source columns used in the calculated measure, which were formatted as 'Decimal Number' in the Query Editor.

     

    I changed the two source columns used in my calculated measure in Query Editor to Fixed Decimal, which solved my problem. All of the flaoting numbers in the Decimal format were removed and the condtional formatting applies correctly. Took me way longer to figure this out than I'd like to admit but I hope it helps others.