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,
What does FILTERS function and ALLSELECTED doing here:
where do we have to use FILTERS function?can i remove below FILTERS() function
CALCULATE(DISTINCTCOUNT(vwFact[Id])
,FILTERS(vwDate[Date])
,FILTER(ALLSELECTED(vwDim), vwDim[Type]="AA" )
,vwFact[pr]="Eng"
)
or
Whats the FILTERS() achieving here:
Testmeasure:= CALCULATE(
DISTINCTCOUNT(vwFact[Id]),
FILTERS(Date[Date])
)
Solved! Go to Solution.
Hi @jatneerjat,
After the Filter, A Boolean expression that is to be evaluated for each row of the table.
So in your formulas, for the first one. you cannot remove the filter. For the second, you can update it to the one as below directly.
measure/column= CALCULATE( DISTINCTCOUNT(your table [Columnname]),)
For more detais, please can refer to the online document.
Regards,
Frank
Hi @jatneerjat,
After the Filter, A Boolean expression that is to be evaluated for each row of the table.
So in your formulas, for the first one. you cannot remove the filter. For the second, you can update it to the one as below directly.
measure/column= CALCULATE( DISTINCTCOUNT(your table [Columnname]),)
For more detais, please can refer to the online document.
Regards,
Frank
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 |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |