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.
Dear Community,
I want to get count of column in below table, the issue is that number of column in my tables changes based on a slicer,
so I want to have every time when user select a filter on a slicer, I could get count of columns in updated table.
for example here is 4.
my goal is to find the rows those have blank cells to set the related variable to zero.
Thanks in advance
Solved! Go to Solution.
@Anonymous
Try set the context to the entire table with allselected().
Measure = Calculated(distinctcount(Table[Column]), Allselected(Table))
Paul Zheng _ Community Support Team
@Anonymous
Try set the context to the entire table with allselected().
Measure = Calculated(distinctcount(Table[Column]), Allselected(Table))
Paul Zheng _ Community Support Team
@Anonymous , Use distinct count of the column
Example measure
distinctcount(Table[Column])
@amitchandak Thanks,
I tried it, but does not work, the problem is that for above table, distinctcount gave the result of 4 for first row,and result=4 for third row,
and result=2 for second the row,
because it has null values,
But I want to have result=4 for all rows, how can I handle this?
how can I apply max function for whole matrix?
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |