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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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.
1 ACCEPTED SOLUTION
v-zhangti
Community Support
Community Support

Hi, @NavaneethaRaju 

 

As you provide in the figure, you can try the following methods.

Measure:

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

vzhangti_0-1660807068466.png

vzhangti_1-1660807115180.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @NavaneethaRaju 

 

As you provide in the figure, you can try the following methods.

Measure:

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

vzhangti_0-1660807068466.png

vzhangti_1-1660807115180.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

jdbuchanan71
Super User
Super User

OK, leave that filter in but remove the one on owner.

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] )
    )
)
jdbuchanan71
Super User
Super User

@NavaneethaRaju 

What happens if you remove the FILTERS in your CALCULATE.

Total Procedures =
SUMX (
    VALUES ( 'Tag Usage Fact'[Tag ID] ),
    CALCULATE (
        SUM ( 'Procedure Fact'[Procedures] ),
        ALLEXCEPT ( 'Tag Usage Fact', 'Tag Usage Fact'[Tag ID] )
    )
)

@jdbuchanan71 ,

 

If i write a measure without Filters('Tag Usage Fact'[Order Date]), it will show all the dates of data, so this filter only giving  the selected date range data. I just attached the data above like few rows. is there any measure to solve this issue. Please advice.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors