Forum Discussion

watje255_ju's avatar
watje255_ju
Icon for Helper III rankHelper III
2 years ago
Solved

Conditional Formatting Calculation Groups

Hi I am trying to format my calculation group, using this dax expression to make the font of the Budget numbers blue,  Formatting = IF (     SELECTEDVALUE ('Test Calculation group'[Test Calculati...
  • danextian's avatar
    danextian
    2 years ago

    Hi watje255_ju 

    It would have worked but that isn't how you're supposed to create a calcuation item. An item would be something like

    CALCULATE ( SELECTEDMEASURE (), SAMEPERIODLASTYEAR ( Dates[Date] ) )
    

    SELECTEDMEASURE stands for whatever measure that you'd want SAMEPERIODLASTYEAR to be applied to in the context of the calculation group.  You can see in the first screenshot of my initital reply how your setup behaves. In one of his videos, the author actually discussed how to create a calculation item