Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
Data Model -
I have already completed below calculation (measures) -
Requirement -
i want to show list of customers whose sales is continuously following specifid Indication like Increasing, Decreasing or No change. So it is based on 12 Month Sales Average Indicator calculated measure. User will define last N month value in slicer.
I have already created Power BI file with above measure & all slicers. Now i want to complete Measure -
Last N Month Sales Moving Growth --> For example if user select 3 month and Indicator value from slicer = Increasing, it should show list of cutomers which have 12 Month Sales Average Indicator value continuously Increasing from last 3 months and so on. This measure should show 1 if condition is true or BLANK().
Please help me to complete above measure.
Please find Power BI file here -
https://1drv.ms/u/s!AgZ1uNPRA6n_g3fW76Jp7PFaMjid
Thanks
Deepak
Solved! Go to Solution.
You may check the measure below.
Measure = IF ( COUNTROWS ( FILTER ( SUMMARIZE ( DimDate, DimDate[Date].[Year], DimDate[Date].[Month] ), DATEDIFF ( CALCULATE ( MAX ( DimDate[Date] ) ), MAX ( DimDate[Date] ), MONTH ) < [LastNMonthSlicerValue] && [12 Month Sales Average Indicator] = SELECTEDVALUE ( GrowthIndicator[IndicatorValue] ) ) ) = [LastNMonthSlicerValue], 1 )
You may check the measure below.
Measure = IF ( COUNTROWS ( FILTER ( SUMMARIZE ( DimDate, DimDate[Date].[Year], DimDate[Date].[Month] ), DATEDIFF ( CALCULATE ( MAX ( DimDate[Date] ) ), MAX ( DimDate[Date] ), MONTH ) < [LastNMonthSlicerValue] && [12 Month Sales Average Indicator] = SELECTEDVALUE ( GrowthIndicator[IndicatorValue] ) ) ) = [LastNMonthSlicerValue], 1 )
Hi Sam, Thanks for providing measure. It is partially woking. It is not filtering customers. If i use the measure on simple table it should only display only those list of customers who has satisfied the criteria.
So for example out of 5 customers, there is only one customer who is continuously in "Decreasing" state from last month 3 month for selected Item. It should display only that customer. Sorrry if i missed to explain earlier.
Can it be possible?
Thanks
Deepak
Hi , Thanks for providing measure.It is partially working. it should consider customer based on last selcted month & items.
If i use the measure to show on simple table it should only display only those list of customers who has satisfied the criteria.
So for example out of 5 customers, there is only one customer who is continuously in "Decreasing" state from last month 3 month for selected Item. It should display only that customer. Measure should return 1 if above condition is satified else BLANK(). I can filter the visual to hide BLANK() values.
Please suggest .
Thanks Deepak
It seems to work.
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
49 | |
45 |