Skip to main content
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
474Raghad
New Contributor

How to display the data with specific period as default to the dashbord

Hi Team, 

 

I'm using a specific measure that is return True/Fasle. I want the dashboard to present the data that is related to the True values how to set this setting without using the filter in the dashboard because I'm using a sliver to filter the period and whenever the user choose a specific year the dashboard will be filtered in the chosen year ? 

2 REPLIES 2
anilelmastasi
Contributor III

Hello @474Raghad ,

 

If you're writing a measure like:
 
TotalSales = SUM(FactSales[Amount])
 
You can wrap the measure in a filter that returns only rows where your Boolean condition is true.

 Assume you have a measure:
[IsQualifiedCustomer] =
Some condition returning TRUE or FALSE
 
Then use:

TotalSales_OnlyQualified =
CALCULATE(
SUM(FactSales[Amount]),
FILTER(
ALL(FactSales),
[IsQualifiedCustomer] = TRUE()
)
)

This ensures that only rows where [IsQualifiedCustomer] is TRUE() are included in the calculation, regardless of visible filters. And it respects slicers like Year or Period โ€” because those apply outside the CALCULATE context unless removed with REMOVEFILTERS() or ALL()
 
If this solved your issue, please mark it as the accepted solution. โœ…
raju8004212
New Contributor II

Hi @474Raghad 

please follow below steps it will help you solve.

 

If you want all visuals on a page/report to be restricted to TRUE rows (like RLS, but not user-based), you can create a calculated table that contains only the TRUE rows:

 

FilteredData =
FILTER ( OriginalTable, [MyCondition] = TRUE )

Then build your visuals on top of FilteredData instead of the raw table.

Helpful resources

Announcements
Top Solution Authors
Users online (9,586)