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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sperling
Helper II
Helper 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.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.