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
bhuprakashs
Helper I
Helper I

Filter report as per slicer selection

Hi Experts,
Greetings!

I need your help to write a DAX/Solution basis of below condition. 
I have a data table which has Account_Number column. Lets suppose Account_Number column has values 1,2,3,4,......10. Now I have to give a slicer (Allocated | Deallocated) on the report - If I select Allocated from slicer then show all 10 records. If I select  Deallocated from slicer then show only records 1,2,3,4,5,6 only. I want to exclude 7,8,9,10. How can I achieve this ? 

1 ACCEPTED SOLUTION
djurecicK2
Super User
Super User

Hi @bhuprakashs ,

 You could create an allocationstatus column and set it to the appropriate value depending on Account_Number. Then use that allocationstatus field in the slicer.

View solution in original post

3 REPLIES 3
audreygerred
Super User
Super User

You can add a column that designates which records are Deallocated. If not deallocated, have them be allocated. Then in the report, if someone selects nothing they see all the records. If they select deallocated they only see those records. If they select allocated they will only see those.





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

Proud to be a Super User!





I have created below measure to identify Allocation or Deallocation.

Chk =
var selectionCheck = SELECTEDVALUE(Slicer[AllocationChk])
RETURN
SWITCH(
    TRUE(),
    selectionCheck = "Deallocation" && VALUES(Sheet1[Account_Number ]) in {1,2,3,4,5,6} , 1 , 0 )
   

now I am using this measure in filter pane and filtering only 1. This is giving me 0 result if I am selecting Allocation from slicer. and correct result if selecting Deallocation.
djurecicK2
Super User
Super User

Hi @bhuprakashs ,

 You could create an allocationstatus column and set it to the appropriate value depending on Account_Number. Then use that allocationstatus field in the slicer.

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors