Forum Discussion
Default filter when no filter selected
- 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.
zoffice
Try the following measure:
Your Measure =
IF(
ISFILTERED(Table[Region]),
SUM(FactTable[Amount]),
CALCULATE(
SUM(FactTable[Amount]),
Table[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 š
- zoffice5 years agoHelper I
Thank you!
How do I retrieve string values?
- Anonymous5 years agoNot applicable
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.