March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have this measure to calculate the percentage of a category in a column:
I was wondering, is there a way for me to filter out certain values from the [CLIENT TYPE] column so that it does not affect the MLTSD% measure? I would like to modify this measure so that it filters out CLIENT TYPE - "NO USER". There are other CLIENT TYPES in that column, which I would like to include in my measure though. I just want to filter out CLIENT TYPE - "NO USER". If somebody could please help me modify this measure so that in my percentage calculation, the records with "NO USER" are not calculated, that would be great.
thank you.
Solved! Go to Solution.
Hi @OPS-MLTSD
You can make use of the below formula
Thanks, if I have additional filters such as blank or "error", can I add them like this?:
[CLIENT TYPE] <> "NO USER", "ERROR", "BLANK()"
ofcourse you can add additional filter as far as it is present in the column name ...BALNKS() by default wont be taken into consideration while performing sum....also if you have some error you can also handle those by using IFERROR ,ISERROR
Appreciate you kudos , Press the thums up button !!
Regards,
Husna
Good to know about the BLANKS! so in the [CLIENT TYPE] column, there is a field called "ERROR" (its just the category name given to a client to sow that client does not belong in this list. So since the category name is "ERROR" would I be able to write the measure as:
FILTER [CLIENT TYPE] <> "NO USER", "ERROR" ?
this helps, thank you!!
After "New ministry]="MLSTD" && [CLIENT TYPE] = "No USER") and let me know if it works!
Proud to be a Super User!
Hello, it didn't seem to work
hi @OPS-MLTSD - Is there a specific reason you are using SUMX and not SUM function for your calculations? I do not see any specific row level calculation which is being performed.
Please see if the below calculation logic would work for you:
DAX to calculate the SUM for the specific column along with the required filter criteria
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Sumanth
Proud to be a Super User!
I think I missed to specify the filter context , please use after sumx function, Filter(all(CA USAGE), ministry=mltsd && client type = no user) it should work
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |