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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Justas4478
Post Patron
Post Patron

Sales by day as a % of total week

Hello, is it possible to create measure that calculates Sales by day as a % of total week. End result would look something like in the picture. Thank you. Sales By week as %.PNG

1 ACCEPTED SOLUTION
FrankAT
Community Champion
Community Champion

Hi @Justas4478 

this is my sample table:

 

22-07-_2021_23-09-34.png

 

Sum of Value = SUM('Table'[Value])

Total of Week = CALCULATE([Sum of Value]), ALLEXCEPT('Table', 'Table'[Week]))

Percentage = DIVIDE([Sum of Value], [Total of Week])

 

 If you use the above measures and conditional formatting your result should like like this:

 

22-07-_2021_23-09-09.png

Take a look at the attached PBIX file.

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

View solution in original post

2 REPLIES 2
FrankAT
Community Champion
Community Champion

Hi @Justas4478 

this is my sample table:

 

22-07-_2021_23-09-34.png

 

Sum of Value = SUM('Table'[Value])

Total of Week = CALCULATE([Sum of Value]), ALLEXCEPT('Table', 'Table'[Week]))

Percentage = DIVIDE([Sum of Value], [Total of Week])

 

 If you use the above measures and conditional formatting your result should like like this:

 

22-07-_2021_23-09-09.png

Take a look at the attached PBIX file.

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

littlemojopuppy
Community Champion
Community Champion

Hi @Justas4478 ...can you provide some sample data to work with?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.