Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have 2 measures that I created:
FirstSaleWeek
LastSaleWeek
I have UPC ID as the product I want to track sales on.
My LastSaleWeek is correctly returning the last sales week however the first sales week is returning 1/11/2025 even though my sales data goes back into 2024.
Here is the FirstSaleWeek that is the issue.
Solved! Go to Solution.
Hi @glmoon5,
Thank you for reaching out to Microsoft Fabric Community.
Based on the current measure, the issue here is with the use of ALLSELECTED. To fix this, please update the FirstSaleWeek measure to use ALL() instead of ALLSELECTED() like this:
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Hi @glmoon5,
Thank you for the response and confirming that the issue is resolved now. Power bi does not allow measures to be used directly in slicers. Slicers only work with columns not measures.
To enable slicing by First sale week, you can create a calculated column like this:
FirstSaleWeek_Column =
CALCULATE(
MIN('ACI Distribution'[W/E Date]),
FILTER(
'ACI Distribution',
'ACI Distribution'[UPC ID] = EARLIER('ACI Distribution'[UPC ID])
)
)
you can add this to a slicer.
Thanks and regards,
Anjan Kumar Chippa
Hi @glmoon5,
Thank you for reaching out to Microsoft Fabric Community.
Based on the current measure, the issue here is with the use of ALLSELECTED. To fix this, please update the FirstSaleWeek measure to use ALL() instead of ALLSELECTED() like this:
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
Thank you that fixed my issue. Now how can I use FirstSaleWeek as a slicer. It won't let me add the field to the slicer.
Thank you that fixed my issue. Now how can I use FirstSaleWeek as a slicer. It won't let me add the field to the slicer.
Hi @glmoon5,
Thank you for the response and confirming that the issue is resolved now. Power bi does not allow measures to be used directly in slicers. Slicers only work with columns not measures.
To enable slicing by First sale week, you can create a calculated column like this:
FirstSaleWeek_Column =
CALCULATE(
MIN('ACI Distribution'[W/E Date]),
FILTER(
'ACI Distribution',
'ACI Distribution'[UPC ID] = EARLIER('ACI Distribution'[UPC ID])
)
)
you can add this to a slicer.
Thanks and regards,
Anjan Kumar Chippa
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 27 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 54 | |
| 44 | |
| 42 | |
| 39 | |
| 36 |