Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
schmere
New Member

Totals sum not as expected.

Hi Community, 

 

depending on the the date my "demand" meassure either equals Actuals or a Forecast. The meassure works fine but the total is not summing up the demand but instead only shows first weeks result. If I select a future quarter or historical quarter the Sum is correct. The error only appears in the current quarter where the total of demand meassure can be a combination of forecast and Actuals. Any idea or suggestion how I can fix this so the current quarter sums up entire demand measure?

demand meassure:  

demand = If((TODAY()-7)>FIRSTNONBLANK(Sheet1[Period Start],Sheet1[Period Start]),[Actuals U],[Final demand])

Snapshot of total Demand.

 

 

power BI.JPG

 

Many Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@schmere , Try a measure

sumx(values(Sheet1[Date]), demand = If((TODAY()-7)>FIRSTNONBLANK(Sheet1[Period Start],Sheet1[Period Start]),[Actuals U],[Final demand]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
schmere
New Member

Thanks @amitchandak. That worked like a charm.

amitchandak
Super User
Super User

@schmere , Try a measure

sumx(values(Sheet1[Date]), demand = If((TODAY()-7)>FIRSTNONBLANK(Sheet1[Period Start],Sheet1[Period Start]),[Actuals U],[Final demand]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors