Forum Discussion
kalpesh07
2 years agoFrequent Visitor
DAX
Hi All, I need help with DAX Formula to calculate Market Share. I've Master Data which is very clean but is a combination of Value & Volume by Segment,Manufacturer, Brand at MONTH Level. - Basic...
- Anonymous2 years ago
HI kalpesh07,
Perhaps you can try to use the following measure formula if it suitable for your requirement:
formula = DIVIDE ( SUM ( MarketData[Sales Value] ), CALCULATE ( SUM ( MarketData[Sales Value] ), ALLSELECTED ( MarketData ), VALUES ( MarketData[SEGMENT] ), VALUES ( 'Calendar'[Date] ) ), 0 )Regards,
Xiaoxin Sheng
Anonymous
2 years agoNot applicable
HI kalpesh07,
Perhaps you can try to use the following measure formula if it suitable for your requirement:
formula =
DIVIDE (
SUM ( MarketData[Sales Value] ),
CALCULATE (
SUM ( MarketData[Sales Value] ),
ALLSELECTED ( MarketData ),
VALUES ( MarketData[SEGMENT] ),
VALUES ( 'Calendar'[Date] )
),
0
)
Regards,
Xiaoxin Sheng
- kalpesh072 years agoFrequent Visitor
Anonymous Thanks!
- kalpesh072 years agoFrequent Visitor
Hi Anonymous Can you help me with the same Measure but calculating the same as rolling period. I need help with Calculating on Rolling period Basis. MAT means last 12 Month.
So I've to calculate Sales% basis Last 12 month for every month like
Jan'24 MAT (Feb23-Jan24)
Feb'24 MAT (Mar23-Feb'24)
Mar'24 MAT (Apr23-Mar24)- NILU0901 year agoHelper II
i have a question, why did you use following statement, it may have filtered from Filter from Page.
VALUES ( MarketData[SEGMENT] ),
VALUES ( 'Calendar'[Date] )