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
ravikora
Frequent Visitor

How to ignore a slicer for one measure , but apply it on others

Hi all,

 

Required to keep measure (AvgLTD) values unchanged/constant in that row filter context, regardless of slicer selection (Period).

 

I was actually already tried with REMOVEFILTERS() and ALL dax functions but not worked.

Below are tables to understand everyone on my requirement.

 

Table 1- DIM

Id, Date, Period
1 1/1/2020 Jan
2 1/2/2020 Feb
3 1/3/2020 Mar
4 1/4/2020 Apr


Table 2 - FACT

Period_Id, Name, TotalSales, AverageSales(TotalSales/SlicerSelectionCount), AvgLTD(Totalsales/TotalPeriodCount)
1   Product1   120   60     30
2   Product2   400   200   100
3   Product3   30     15     7.5
4   Product4   200   100   50


Slicer used to filter data:

Period
Jan
Feb
Mar
Apr


1. Both Table 1 and 2 has inner join on 'Id' and 'Period_Id' 

2. In this sample 'AverageSales' are calucalted for 'Jan-Feb' period selection from slicer.

3. 'AvgLTD' calculated on 'TotalSales/TotalPeriodCount'

 

ravikora_1-1605983067193.png

 

Can anyone please help me for solution?

 

Thanks,

Ravi

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@ravikora ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Try a measure like

calculate(divide([TotalSales],[TotalPeriodCount]), allexcept(Table, Table[product]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
mohammedadnant
Impactful Individual
Impactful Individual

Hi @ravikora ,

 

Good day,

 

Try allexcept DAX, for clarification pls check this video

https://youtu.be/QDiyN4fUsds

 

Thanks & Regards,

Mohammed Adnan

www.youtube.com/taik18

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!

Thanks & Regards,
Mohammed Adnan
Learn Power BI: https://www.youtube.com/c/taik18

@mohammedadnant i will see.. thanks very much.

wdx223_Daniel
Super User
Super User

@ravikora  =[TotalSales]/calculate(distinctcount(dimtable[period]),all(dimtable))

Thanks @wdx223_Daniel  

amitchandak
Super User
Super User

@ravikora ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Try a measure like

calculate(divide([TotalSales],[TotalPeriodCount]), allexcept(Table, Table[product]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks @amitchandak 

dax worked well and i was not used it before in proper way. Finally done with solution. Thanks once again!

calculate(divide([TotalSales],[TotalPeriodCount]), allexcept(Table, Table[product]))

 

Cheers,

Ravi

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.