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 Experts,
i have data like below
Group name | Dealer |
Group1 | 2100 |
Group1 | 9435 |
Group1 | 3254 |
Group1 | 2143 |
Group2 | 5443 |
Group2 | 4524 |
Group2 | 6455 |
Group3 | 7544 |
Group3 | 4325 |
Group3 | 4354 |
Group3 | 6543 |
now i have one slicer as a Dealer, whenever i selected value from dealer slicer i want to show entire dealer group count number.
EX: i selected 2100 dealer from slicer then measure should show 4 (because 2100 value we have in group1 so we need group1 Count)
thanks & regards
Don
Solved! Go to Solution.
@Anonymous
Try this.
Group Count =
VAR _Group =
SELECTEDVALUE ( 'Table'[Group name] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
REMOVEFILTERS ( 'Table'[Dealer] ),
'Table'[Group name] = _Group
)
If you want it to work when selecting multiple Dealers we can do it like this instead.
Group Count =
VAR _Group =
DISTINCT ( 'Table'[Group name] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
REMOVEFILTERS ( 'Table'[Dealer] ),
_Group
)
@Anonymous
Try this.
Group Count =
VAR _Group =
SELECTEDVALUE ( 'Table'[Group name] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
REMOVEFILTERS ( 'Table'[Dealer] ),
'Table'[Group name] = _Group
)
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 |
---|---|
109 | |
98 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |