Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Here Plant1, Plant 2 etc tells how many operation does Company has under that Plant.
I want to calculate the "Net" value has the COUNT of cells that are filled from Plant1 to Plant 5 and then calculate the total number of rows under "Net" which has all 5 plants
Final result is "Total together" i.e. Organization that has operation in all the 5 plants.
Total Together counts the number of "5" in Net column
I used measures to calculate the values but wasn't able to get to the solution.
Please help!
Solved! Go to Solution.
Hi @MayankMit1625 ,
In the query editor, select the org column then unpivot other columns:
Then create 2 measures like below:
Net =
CALCULATE(DISTINCTCOUNT('Table'[Attribute]),ALLEXCEPT('Table','Table'[Org Name]))
Total Together = CALCULATE(DISTINCTCOUNT('Table'[Org Name]),FILTER('Table',[Net]=5))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @MayankMit1625 ,
In the query editor, select the org column then unpivot other columns:
Then create 2 measures like below:
Net =
CALCULATE(DISTINCTCOUNT('Table'[Attribute]),ALLEXCEPT('Table','Table'[Org Name]))
Total Together = CALCULATE(DISTINCTCOUNT('Table'[Org Name]),FILTER('Table',[Net]=5))
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You really should consider unpivoting your data to simplify your analysis and visualization. The unpivot action will remove any combinations with null, and then you can do a simple DISTINCTCOUNT of the Attribute (Plant) column, or FILTER for organizations where the DISTINCTCOUNT of Plant = 5.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
User | Count |
---|---|
96 | |
87 | |
78 | |
72 | |
68 |
User | Count |
---|---|
111 | |
104 | |
85 | |
65 | |
63 |