Forum Discussion
zoffice
5 years agoHelper I
Default filter when no filter selected
Hi all, I have a slicer of list of regions, and some table and graphs showing the indicators for each selected region. For example, one card showing some country background text, and another vis...
- Anonymous5 years ago
Hi zoffice
I think your data model is as below.
If you want to calculate number you can use measure like Fowmy 's reply.
If you want to retrieve string values you can try my measure.
String = IF( ISFILTERED('Table'[Region]), MAX('Table'[Value-string]), CALCULATE( MAX('Table'[Value-string]), 'Table'[Region] = "Europe" ) )Result is as below.
By default:
Select Asia:
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Fowmy
5 years agoSuper User
zoffice
Please check the below formula and adjust it as per your model.
When no region is selected, it shows the Europe total and
Your Measure =
IF(
ISFILTERED(Table6[Region]),
SUM(Table6[ Value-numerical]),
CALCULATE(
SUM(Table6[ Value-numerical]),
Table6[Region] = "Europe"
)
)
________________________
If my answer was helpful, please click Accept it as the solution to help other members find it useful
Click on the Thumbs-Up icon if you like this reply š