Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi!
I'm trying to combine to measures - Measure 1 & Measure 2 - based on what date it is. This is Measure 3. I want to show Measure 1's value for the days up until today, and Measure 2's value for today and forward. My current solution gives med the wrong total.
My DAX code right now:
Measure 3=
IF(
MAX([DATE]) < TODAY(),
[MEASURE 1],
[MEASURE 2]
)
As you can see I get the same total for Measure 3 as Measure 2. It should be 51, not 76.
FYI, I only have data in my columns to create Measure 1 and Measure 2 as they are in the picture.
Any ideas on what to do?
/Ella
Solved! Go to Solution.
Hi,
MyMeasure :=
VAR MyTable =
SUMMARIZE(
'Table',
'Table'[DATE],
"Value", IF( 'Table'[DATE] < TODAY(), [MEASURE 1], [MEASURE 2] )
)
RETURN
IF(
ISFILTERED( 'Table'[DATE] ),
IF( MAX( 'Table'[DATE] ) < TODAY(), [MEASURE 1], [MEASURE 2] ),
SUMX( MyTable, [Value] )
)
Regards
You're welcome!
Cheers
Hi,
MyMeasure :=
VAR MyTable =
SUMMARIZE(
'Table',
'Table'[DATE],
"Value", IF( 'Table'[DATE] < TODAY(), [MEASURE 1], [MEASURE 2] )
)
RETURN
IF(
ISFILTERED( 'Table'[DATE] ),
IF( MAX( 'Table'[DATE] ) < TODAY(), [MEASURE 1], [MEASURE 2] ),
SUMX( MyTable, [Value] )
)
Regards
Hi Jos! IT IS WORKING 🙂 Thank you so much for such a quick response!!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 17 | |
| 10 | |
| 7 | |
| 6 |