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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
ccc1234
New Member

How to get total percent per year not portion of percent of total?

ccc1234_0-1724358815525.png

I want to filter so I get the total percentage distribution per year and not as a percent of the total.

How can I achieve this? I can't seem to make it work the way I'm mentioning. 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @ccc1234 ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

Measure = 
VAR _a=SUM('Table'[Value])
VAR _b=CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Year]))
RETURN DIVIDE(_a,_b)

(3) Then the result is as follows.

vtangjiemsft_0-1724379484941.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
v-tangjie-msft
Community Support
Community Support

Hi @ccc1234 ,

 

According to your description, here are my steps you can follow as a solution.

(1) My test data is the same as yours.

(2) We can create a measure. 

Measure = 
VAR _a=SUM('Table'[Value])
VAR _b=CALCULATE(SUM('Table'[Value]),ALLEXCEPT('Table','Table'[Year]))
RETURN DIVIDE(_a,_b)

(3) Then the result is as follows.

vtangjiemsft_0-1724379484941.png

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

ryan_mayu
Super User
Super User

could you pls provide the sample data (not the screenshot) and the expectd output ?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.