Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi,
I'm trying to calculating a meaure (to use in a pie chart) to count the number a certain a value (or string) appears in a ROW. I found many examples to calculate columns, but not Rows.
Example:
I have this Table called "Stats"
I want to count, for each ROW, how many times is appearing the value "High" and how many the value "Low".
Can DAX help me with this? I found a thread here https://community.powerbi.com/t5/Desktop/Count-if-a-value-occurs-in-multiple-columns-per-row/m-p/356... but doesn't seems to work.
Thanks everyone!
Solved! Go to Solution.
@Anonymous , Not very clear . Try like
High =
var _tab = union(all(Table[family management]),all(Table[family information]),all(Table[family parameter]))
return
calculate(countx(filter(_tab,[family management] ="High"),[family management]))
Low =
var _tab = union(all(Table[family management]),all(Table[family information]),all(Table[family parameter]))
return
calculate(countx(filter(_tab,[family management] ="High"),[family management]))
@Anonymous , Not very clear . Try like
High =
var _tab = union(all(Table[family management]),all(Table[family information]),all(Table[family parameter]))
return
calculate(countx(filter(_tab,[family management] ="High"),[family management]))
Low =
var _tab = union(all(Table[family management]),all(Table[family information]),all(Table[family parameter]))
return
calculate(countx(filter(_tab,[family management] ="High"),[family management]))
Hi @Anonymous , Can you try creating measure with some DAX as below-
I created a sample data set of 35 Rows with 23 High and 11 as Low. With the help of above 2 Dax formulas i get this output.
Hope this helps.
Cheers,
-Namish B
User | Count |
---|---|
77 | |
74 | |
63 | |
61 | |
45 |
User | Count |
---|---|
108 | |
102 | |
93 | |
83 | |
64 |