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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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