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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Sam7
Advocate II
Advocate II

Dax Data appears twice

My data looks like

Sam7_0-1715270325291.png

I want to write a measure to say if my

Invoice number appears in week 1 and 2 then week 1 and 2 ,

Invoice number appears in week 1 and not 2 then week 1 and not 2 

 

I want to then use this as a slicer. 

Thanks

3 REPLIES 3
sevenhills
Super User
Super User

You posted sample data! What is the output you are expecting? 

 

You are saying you want to use the slicer, which you can drag the invoice number with your data now also. Unless you want a unique list. Then in such cases, you can either do in Power Query a new table and link back or in DAX as new table as Values ('Table'[Invoice Number]) and then use it. I prefer Power Query!

 

 

 

 

Hi. thank you for your input. 

I wanted a slicer so they can select the In week 2 and Week 3 OR another option in the slicer would be In Week 2 and Not in Week 3 etc. 

 

I want to see what has come in during week 2. 

Please see these 

 

Apply AND logic: https://www.youtube.com/watch?v=tONOosN1xAs

                             https://www.sqlbi.com/articles/apply-and-logic-to-multiple-selection-in-dax-slicer/

                             https://www.youtube.com/watch?v=X5T4rIZovHk 

 

 

Apply OR logic:    https://www.youtube.com/watch?v=l5JX3G5Ntzk 

 

Hope this helps!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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