Forum Discussion

Peppearson's avatar
Peppearson
Helper I
3 years ago
Solved

Combining Two Measures

Hi All,   I'm trying to create a measure which is a combination of two different measures and which changes in line with a date slicer.   Example   There are two data tables with actual sales a...
  • Shaurya's avatar
    3 years ago

    Hi Peppearson,

     

    You can try using:

     

    Combined = CALCULATE(SUM('Table1'[Actual Sales]), FILTER('Table1', MONTH('Table1'[Date])<=MONTH(SELECTEDVALUE('Filter'[Date])))) + CALCULATE(SUM('Table2'[Projected Sales]), FILTER('Table2', MONTH('Table2'[Date])>MONTH(SELECTEDVALUE('Filter'[Date]))))

     

    Works for you? Mark this post as a solution if it does!
    Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI