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.
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
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
Hi,
Furthermore, since TotalActiveUsers is a measure, you should not precede it with the Table Name.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |