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
NewbieJono
Post Patron
Post Patron

Top 10

i have a graph with each category displayed as percentage of total. when i select top 10 in filter it changes the percent to the top 10 only.

 

is there anyway of keeping perctage of coloumn total.

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

Hi  @NewbieJono ,

I created some data:

vyangliumsft_0-1643074996553.png

Here are the steps you can follow:

1. Create measure.

rank =
RANKX(ALL('Table'),[category_percentage],,DESC)
Flag =
IF(
    [rank]<=10,1,0)

2. Place [Flag] in Filters, set is=1, apply filter.

vyangliumsft_1-1643074996554.png

3. Result:

By tagging and filtering it, the filtered percentage is still calculated by the total amount

vyangliumsft_2-1643074996556.png

 

Best Regards,

Liu Yang

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

6 REPLIES 6
v-yangliu-msft
Community Support
Community Support

Hi  @NewbieJono ,

I created some data:

vyangliumsft_0-1643074996553.png

Here are the steps you can follow:

1. Create measure.

rank =
RANKX(ALL('Table'),[category_percentage],,DESC)
Flag =
IF(
    [rank]<=10,1,0)

2. Place [Flag] in Filters, set is=1, apply filter.

vyangliumsft_1-1643074996554.png

3. Result:

By tagging and filtering it, the filtered percentage is still calculated by the total amount

vyangliumsft_2-1643074996556.png

 

Best Regards,

Liu Yang

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

NewbieJono
Post Patron
Post Patron

This is what i have now to

 

Total Failures =

VAR
TOTALFAIL = CALCULATE (
SUM('FACT - Error Data'[ALL]),
FILTER('FACT - Error Data','FACT - Error Data'[FAILURE REASON]<> 51 && 'FACT - Error Data'[FAILURE REASON]<> 52)
)

RETURN

TOTALFAIL


---------------------------------

Total Transactions =

VAR
totalIntefrity = CALCULATE (
SUM('FACT - Integrity Data'[VOLUME]),
filter('FACT - Integrity Data','FACT - Integrity Data'[CODE]="TTE.02")
)

VAR
totalError = CALCULATE (
SUM('FACT - Error Data'[ALL]),
FILTER('FACT - Error Data','FACT - Error Data'[FAILURE REASON]= 51 || 'FACT - Error Data'[FAILURE REASON]= 52)
)

RETURN

totalIntefrity - TotalError

---------------------------------------

Daily Percentage Failure Rate = [Total Failures] / [Total Transactions]

mh2587
Super User
Super User

you have to remove filter from percentage with help of dax by using ALL Function on the percentage column


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



any examples how i could do this

mh2587
Super User
Super User

can you share the dax please 


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



i not using DAx, i just got total counts and display total as %

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.