This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi All
Can some one share with me how to create a measure to filter those customer sales increase :-
Above link is my PBI file
Paul
Solved! Go to Solution.
@Anonymous
You can create a measure to filter the visual
1. Create this measure:
ShowMeasure =
VAR salesYTD_ = [Sales YTD]
VAR salesLYTD_ = [Sales LYTD]
RETURN
IF(salesYTD_ > salesLYTD_, 1, 0)
2. Place [ShowMeasure] as a visual filter and choose to show when value is 1
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous
See it all at work in the attached file. Page 2
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous
Yes, that looks good. But bear in mind that what you are doing there is not exactly the YTD as you were doing before but the last 12 months and the 12 months previous to the last 12 months
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous
Yes, that looks good. But bear in mind that what you are doing there is not exactly the YTD as you were doing before but the last 12 months and the 12 months previous to the last 12 months
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
@Anonymous
As you have it now, the visual shows Sales YTD and Sales LYTD. And we are comparing those and selecting the customers that bought more in YTD than in LYTD. Now you say yo want to compare based on sales rather than (L)YTD.
1. Would the table visual still have YTD and LYTD in it, or sales?
2. As of today (23/12), you would still want to show the customers that had more sales in the period 01/01/2020- 23/12/2020 than in the period 01/01/2019- 23/12/2019, correct?
3. In January 2021, let's say 15/01/2020, you will the visual to show customers that had more sales in the period 01/01/2020- 31/12/2020 than in the period 01/01/2019- 31/12/2019, correct?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
Thank you for sharing.
1. Would the table visual still have YTD and LYTD in it, or sales? Answer = Only using sales. not more YTD and LYTD
2. As of today (23/12), you would still want to show the customers that had more sales in the period 01/01/2020- 23/12/2020 than in the period 01/01/2019- 23/12/2019, correct? Answer : Yes correct.
3. In January 2021, let's say 15/01/2020, you will the visual to show customers that had more sales in the period 01/01/2020- 31/12/2020 than in the period 01/01/2019- 31/12/2019, correct? Answer Yes
This morning Amit have share with me using rilling last 12 month expression :-
@Anonymous
Ok, but how exactly do you want the check done with sales? How do you want it now and how do you want it inJan 2021?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
Very sorry , I cannot understand your question.
Paul
@Anonymous
I don't understand the question
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
The dis-advantage of using YTD and LYTD to compute the sales drop by customer is :-
- During next year the table will not reflect the whole year compare of customer sales. as it only compare Jan 2021 vs 2020 Jan sales.
If i am using SALES_ FIELD amount to compute the sales increase customer. Then the report will be also valid during Jan 2021. Because it have full year data during 2021 Jan.
Hope you understand.
Paul Yeo
I am puting this post to the top , because i am working on it now
@Anonymous
See it all at work in the attached file. Page 2
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
After thinking over , i should not using YTD for filter sales up customer , instead i should use SALES field , so that Jn 2021 , i am still able to check which are customer sales up compare 2019 vs 2020.
Above link is my PBI file , hope that you can share with me.
Paul
@Anonymous
You can create a measure to filter the visual
1. Create this measure:
ShowMeasure =
VAR salesYTD_ = [Sales YTD]
VAR salesLYTD_ = [Sales LYTD]
RETURN
IF(salesYTD_ > salesLYTD_, 1, 0)
2. Place [ShowMeasure] as a visual filter and choose to show when value is 1
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
Thank you this expression is easy to understand.. i can modify to get those sales drop customer too.
Paul
Hi @Anonymous
Which customers do you want to show exactly? Those who have a sales increase and had sales the previous years? Would yo like to show "CASH SALES" customer? Why not?
Please mark the question solved when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
Cheers
Hi AIB
Uou spoted the important point , Yes i also like to include those customer last year not buying and YTD buying
Paul
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 33 | |
| 25 | |
| 24 |