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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jatneerjat
Helper V
Helper V

FILTERS() function in dax

Hi,

 

@Greg_Deckler  @Seth_C_Bauer

 

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])

                                                               )

1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

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

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

1 REPLY 1
v-frfei-msft
Community Support
Community Support

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

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.