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 Friends,
I am trying to do a calculation and stuck since I am new. Below is the list of machines. If you can see Machine 1 is having Fixed as well as Open status entries. I want to calculate only the machines which is having only the fixed status. If the same machine is having multiple status then I should not count it. How can I do this. Kindly help.
Result count should Machine 7,8,9,10,11
Solved! Go to Solution.
Hi @BI_Analyticz ,
Create a measure as below:
Measure =
var _tab=CALCULATETABLE(VALUES('Table'[Status]),FILTER(ALL('Table'),'Table'[Machine Name]=MAX('Table'[Machine Name])))
Return
IF("Open" in _tab,BLANK(),1)
Add the measure to the filter pane and select measure is 1,and you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @BI_Analyticz ,
Create a measure as below:
Measure =
var _tab=CALCULATETABLE(VALUES('Table'[Status]),FILTER(ALL('Table'),'Table'[Machine Name]=MAX('Table'[Machine Name])))
Return
IF("Open" in _tab,BLANK(),1)
Add the measure to the filter pane and select measure is 1,and you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @BI_Analyticz ,
You can create a new column using this:
If you put it in a table you will get this:
Jori
If I answered your question, please mark it as a solution to help other members find it more quickly.
Connect on Linkedin
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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |