Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
HI!
Could you please help me with filtering:
I have theese measures: Country; Producer; Category; SubCategory; Month.
I have calculated Market Share of Producers, where I take for base 1Month and all brands.
The main problem is when using filter TOP N, the base is (denominator) is changing too, but in reality it should show all sales (depending on what data type is choosing user, in my case - category).
Maybe there is another way of top filtering. For example, Is it possible to put top 5 only in numerator? But there will be one condition - it shouls show the same top5 producers during the all time periods, (top5 filtered by last period of time)
Hi @Anonymous ,
You can try to use following measure formula, it will summary all filtered(topn and other filters) records and grouped by current month:
All Sales Grouped by month = CALCULATE ( SUM ( db[Volume] ); ALLSELECTED ( db ); VALUES ( db[Month] ) )
Regards,
Xiaoxin Sheng
Tahnk you for helping me!
Unfortunately thre result is wrong. Because using formula "allselected" it calculates base only for top5 producers. For example, sales sum of top5 producers are 219kg, but full sales are 279kg - so fo calcalating for market share of top5 it will take 279kg, not 219). in the picture you can see the result of your formula - first column means sales by Producer, second column meanstotal sales of top5, but there shoul be 279kg.
I hope this try will not stop you in helping me)))))))))))))))))
Hi @Anonymous ,
You can try to use below formula to get percent of all sales based on current month group:
Percent of all sales grouped by month = DIVIDE ( CALCULATE ( SUM ( db[Volume] ); ALLSELECTED ( db ); VALUES ( db[Month] ); VALUES ( db[Producer] ) ); CALCULATE ( SUM ( db[Volume] ); ALL ( db ); VALUES ( db[Month] ) ); BLANK () )
Regards,
Xiaoxin Sheng
Thank you, but unfortunately it does not solve my question.
Please, read my comment below, maybe you have a solution))))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
84 | |
67 | |
60 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |