Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |