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
Sperling
Advocate II
Advocate II

Regular values and cumulative total in matrix

Hello,


I've got values for targets for a whole month, and with a days delay I get sales numbers.

I want to create a matrix showing the index of sales each day over the month compared to the daily targets. This is easily done, however I want the total in the bottom to be the cumulative index of these daily sales and targets up to the last reported day (yesterday).

 

At the moment the total in the bottom shows the index of the sales up to yesterday compared to the target for the whole month, which makes the total useless.

 

Is there a way to solve this issue?

1 ACCEPTED SOLUTION

Ended up finding a solution after a while of struggle. But thanks for the offer of help!

Index =
IFERROR(
   CALCULATE(
      [Sales] / [Target] * 100,
      FILTER(
         'Date',
         'Date'[Date] < TODAY()
      )
   ),
   BLANK()
)

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Sperling ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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

Ended up finding a solution after a while of struggle. But thanks for the offer of help!

Index =
IFERROR(
   CALCULATE(
      [Sales] / [Target] * 100,
      FILTER(
         'Date',
         'Date'[Date] < TODAY()
      )
   ),
   BLANK()
)

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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