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
NavaneethaRaju
Helper IV
Helper IV

All Except Issue- Find a % value using ALLEXCEPT

Hi, 

I created a measure for sum the total for respective of tag, So i got a total values of indiviual tag id.there i used all except measure to create the total for the respective tag ID.  after that i want the find the percentage of the total. 
Below i mentioned the measure
1. 

Total Procedures =
SUMX (
    VALUES ( 'Tag Usage Fact'[Tag ID] ),
    CALCULATE (
        SUM ( 'Procedure Fact'[Procedures] ),
        ALLEXCEPT (
            'Tag Usage Fact',
            'Tag Usage Fact'[Tag ID]
        ),
        FILTERS ( 'Tag Usage Fact'[Order Date] ),FILTERS('Tag Usage Fact'[Tag Owner Name])
    )
)
2. 
% =SUM('Procedure Fact'[Procedures])/[Total Procedures] .

 
 
 
And Now i want to filter the table like only who all are marked as Used or Shared. there i'm facing the issue. If i the filter the used data % of the particular tag is showing 100%, actually it should give the % value from the total. I realy don't know how to filter the data without affecting Total Procedures Measure.

I'm enclosing the sample data. for your reference.
Tag IDSet IDSet NameSystem NameTag Owner Order Owner No of ProceduresTotal Procedures% of UsageUsage Type
297965.905CoalanColanCCGN6875%Shared
297965.905ColanCOlanCCSL2825%Shared
300984.903COALCOALCCGN1425%Shared
300984.903COALCOALGNGN3475%Used
907932.903MARSMARSCSCS3650%Used
907932.903MARSMARSCSIH3650%Shared
While apply one of the option from usage type, this would coming like this.
Tag IDSet IDSet NameSystem NameTag Owner Order Owner No of ProceduresTotal Procedures% of UsageUsage Type
300984.903COAlCOAlGNGN33100%Used
907932.903MARSMARSCSCS33100%Used
 
Actually I need the result like this.
Tag IDSet IDSet NameSystem NameTag Owner Order Owner No of ProceduresTotal Procedures% of UsageUsage Type
300984.903COAlCOAlGNGN3475%Used
907932.903MARSMARSCSCS3650%Used
 
Any one can help me to figure out this.
3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @NavaneethaRaju ;

You could create a measure.

Total Procedures = 
CALCULATE(SUM('Tag Usage Fact'[No of Procedures]),ALLEXCEPT('Tag Usage Fact','Tag Usage Fact'[Tag ID]))
% of Usage = SUM('Tag Usage Fact'[No of Procedures])/[Total Procedures]

The final show:

vyalanwumsft_0-1660199263902.png

Best Regards,

Hi @v-yalanwu-msft ,

I also used this measure before, this measure only showing all total,
but actually the total should be respective of the selected date range. without that Filters(Order date) i can't display the total for selected date range.

amitchandak
Super User
Super User

@NavaneethaRaju , Have you tried

 

divide(SUM('Procedure Fact'[Procedures]), calculate(SUM('Procedure Fact'[Procedures])), all())

 

or

divide(SUM('Procedure Fact'[Procedures]), calculate(SUM('Procedure Fact'[Procedures])), allselected())

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.