Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hello All,
I need help on below logic.
I have report where I am having data like below.
My requirement is in the report side I created a table having 3 values USA , UK and IND and then showing in slicer to select.
Now If I select slicer value as USA I need to show [USA/UK/IND] filed value as USA
If I select slicer value as UK I need to show [USA/UK/IND] filed value as UK
If I select slicer value as IND I need to show [USA/UK/IND] filed value as IND.
I created a measure like this and kept in filters of visuals to select 1 .
But its not working
1st Approach : ( Create a measure)
2nd approach: ( Create a column)
I created a column like this and kept in filters.
But its not working
Solved! Go to Solution.
Hi, @Anonymous
You can try the following methods.
New Table:
Slicer = VALUES('Table'[USA/UK/IND])
Measure:
Measure =
IF ( SELECTEDVALUE ( Slicer[USA/UK/IND] ) = BLANK (),
1,
IF ( SELECTEDVALUE ( Slicer[USA/UK/IND] ) = SELECTEDVALUE ( 'Table'[USA/UK/IND] ),
1,
0
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You can try the following methods.
New Table:
Slicer = VALUES('Table'[USA/UK/IND])
Measure:
Measure =
IF ( SELECTEDVALUE ( Slicer[USA/UK/IND] ) = BLANK (),
1,
IF ( SELECTEDVALUE ( Slicer[USA/UK/IND] ) = SELECTEDVALUE ( 'Table'[USA/UK/IND] ),
1,
0
)
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Try a measure like
Measure =
var _sum = SWITCH(selectedvalue('GSD Stats'[USA/UK/IND])
TRUE(),
[SelectedValue] = "IND", Sum('GSD Stats'[IND Tickets]),
[SelectedValue] = "USA", Sum('GSD Stats'[USA Tickets]),
[SelectedValue] = "UK", Sum('GSD Stats'[UK Tickets])
)
return
calculate( _sum, 'GSD Stats'[USA/UK/IND] in {"IND", "USA", "UK"})
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 76 | |
| 36 | |
| 31 | |
| 29 | |
| 26 |