Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Im trying to calculate previous days exposure for the measure called "prevous days exposure_mwh". It should be the sum of exposure for the last day. I dont get any values as seen in the pictures. What is wrong wilth the calculation?
Solved! Go to Solution.
@LFM You are using CALCULATE and TI functions is what is primarily wrong. Do this instead:
Measure =
VAR __Date = MAX('NPOSC'[date]) - 1
VAR __Table = FILTER( ALL('NPOSC'), [date] = __Date )
VAR __Result = SUMX( __Table, [exposure_mwh] )
RETURN
__Result
@LFM You are using CALCULATE and TI functions is what is primarily wrong. Do this instead:
Measure =
VAR __Date = MAX('NPOSC'[date]) - 1
VAR __Table = FILTER( ALL('NPOSC'), [date] = __Date )
VAR __Result = SUMX( __Table, [exposure_mwh] )
RETURN
__Result
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 17 | |
| 11 | |
| 10 |