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
Anonymous
Not applicable

Filtering two columns by same slicer

I have a rather large table of sales data.   But the only 3 items coumsn i am having issue with are the below 3.

 

Each row is beasicly a product.  We have a column for when the item was put the the sales floor.  A column for when an item was sold.  and a column for the quantity of items.

 

Now i have a Date Range Slicer already made that will show me a table (like the one below) For all items that were put out to th sales floor based on the date range selected.     What i want, to created a new measure that will sum "Item sold count" if it was 

Both to the floor AND sold in the date range of the slicer.   Is this possible?  

 

Date Range Selected 1/1/2020 - 1/5/2020

Date to the FloorDate SoldItems sold count
1/1/20201/1/20204
1/2/20201/3/20203
1/2/20201/5/20207
1/3/20201/3/20201
1/5/20201/5/20201
1/5/20201/6/20202
1/5/20201/8/20203
Total 21

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Create a measure that returns 0 or 1 given your criteria and use it as a filter for the visualization.

 

So, along the lines of:

Measure = 

  VAR __Date = SELECTEDVALUE('Table'[Date])

RETURN

  IF('Table'[Date to the Floor] = __Date && [Date Sold] = __Date,1,0)



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Create one date table which is not connected with your main table.
And add the measure as per suggested in previous comments.

Just update previous dax by changing the first line.
Var _date= selectedvalue(date[date])

Incase you are using between slicers.
You have to consider min and max of date[date]

Thanks
Pravin

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.