Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
Hi All,
Please help to create a measure that lists the customers who have not purchased the selected product, within the list of customers who had at least one product sale for the last 30 days.
We created a measure that will return customers within the last 30 days of sales
30 Days Customer Sales1 = CALCULATE(Sales[Gross Sales], FILTER(DIMTime,DIMTime[salesdate] >= TODAY() - 30 ))
And created another measure for no sales
30 Days No Sales 1 = if ([30 Days Customer Sales1]>0 ,0,1)
while using this measure power bi will list all the customer who doesnt have sales from the past years .
We need only the set of customers who are having sales for at least single product for the last 30 days.
For eg. lets say 1000 customers have sales for the last 30 days. Out of 1000 customers who all didnt purchase the selected product.
Solved! Go to Solution.
Hi @shineug, does your measure "30 Days No Sales 1" work as you expect? If you create a visual "table" with customer name and "30 Days No Sales 1", does it correcly show 1 or 0? If so, to filter a visual by a measure you need to add it to "Filters on this visual": bring the measure there as well, then select "Filter type" - Advanced filtering = 1. This will filter the visual by values of your measure.
I hope it helps you!
Thanks @Sergii24 , with filter option we are getting the desired results.
Is there any other option to achieve these results without using the filters?
There are following considertations to make:
It's up tp you to choose 🙂 Good luck with your project!
Hi @shineug, does your measure "30 Days No Sales 1" work as you expect? If you create a visual "table" with customer name and "30 Days No Sales 1", does it correcly show 1 or 0? If so, to filter a visual by a measure you need to add it to "Filters on this visual": bring the measure there as well, then select "Filter type" - Advanced filtering = 1. This will filter the visual by values of your measure.
I hope it helps you!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
84 | |
84 | |
65 | |
62 | |
55 |
User | Count |
---|---|
171 | |
110 | |
109 | |
73 | |
71 |