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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jatneerjat
Helper V
Helper V

How AllExcept works in below scenario

Hi,

 

i am creating a measure where "MeasuresSet[TotalActiveUsers]" is a measure which hold total number of active users and "VendorType" is a column in "ApplicationDim" which have values like "1S","2S" and "NN".

 

TotalActiveUsers% = MeasuresSet[TotalActiveUsers]/CALCULATE( MeasuresSet[TotalActiveUsers]
                                ,ALLEXCEPT(ApplicationDim,ApplicationDim[VendorType])
                                )

 

Now i want to see percentage of users who have "NN" type wrt total active users when i click on "NN" in a slicer.so how can i achieve this?

Is the above dax query gives correct result when I click on "NN" slicer?

Thanks

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @jatneerjat,

 

Maybe you can try:

TotalActiveUsers% =
MeasuresSet[TotalActiveUsers]
    / CALCULATE ( MeasuresSet[TotalActiveUsers], ALLSELECTED ( ApplicationDim ) )

For more advice, please provide sample data and desired output so that we can test for you.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ashish_Mathur
Super User
Super User

Hi,

 

Furthermore, since TotalActiveUsers is a measure, you should not precede it with the Table Name.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Greg_Deckler
Community Champion
Community Champion

Seems like you need to use a simple ALL instead of an ALLEXCEPT. If you select a particular vendor type in a slicer, then your numerator will reflect that but you do not want that reflected in your denominator so you would use ALL to create a new filter context within your CALCULATE.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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.