Forum Discussion

abihoughton27's avatar
3 years ago
Solved

Conditional Formatting - Icons to show if the previous value was higher or lower

Hello 🙂   I am looking to do some conditionl formatting comparing each months values.   I want to use icons if the value is the same as the previous month a straight arrow, if the value is lower...
  • amitchandak's avatar
    3 years ago

    abihoughton27 , Create a MOM measure and use that conditional formatting

     

    MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD('Date'[Date]))
    last MTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1,MONTH)))

     

    Time Intelligence, Part of learn Power BI https://youtu.be/cN8AO3_vmlY?t=27510
    Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
    Custom Period till date: https://youtu.be/aU2aKbnHuWs&t=145s

     

     

     

    diff = [MTD Sales]-[last MTD Sales]
    diff % = divide([MTD Sales]-[last MTD Sales],[last MTD Sales])