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.
Is there some way we can display the total values of a row header category and then leave the sub-row categories blank? In the sample below, we are trying to count the number of facility by country in a matrix vis.
Is there some way we can keep the counts per country but leave the counts per facility blank? Like so:
Facility by Country | Facilities |
Angola | 1 |
JKL LLC | |
Bangladesh | 3 |
ABC Trading | |
DEF Co., Ltd. | |
JKL LLC |
Solved! Go to Solution.
Hi, @olimilo
You can create a Measure to get the result you want.
SubFacility_Blank =
IF (
HASONEFILTER ( 'Table'[Facilities] ),
"",
CALCULATE (
COUNT ( 'Table'[Facilities] ),
VALUES ( 'Table'[Facility by Country] )
)
)
The result looks like this:
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @olimilo
You can create a Measure to get the result you want.
SubFacility_Blank =
IF (
HASONEFILTER ( 'Table'[Facilities] ),
"",
CALCULATE (
COUNT ( 'Table'[Facilities] ),
VALUES ( 'Table'[Facility by Country] )
)
)
The result looks like this:
Best Regards,
Caiyun Zheng
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@olimilo , I think isinscope should help you
refer: https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
93 | |
84 | |
66 |