Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello everyone,
I'm new in PowerBi and i want to calculate the "market share Delta" for my Dashboard. (Market share gain or loss YOY).
Soo i first started calculating the current year MS with this mesure :
Please read this: Standard time-related calculations – DAX Patterns
To do such calculations your model needs to be a proper star-schema and have a proper Date(time) dimension.
Please read this: Understand star schema and the importance for Power BI - Power BI | Microsoft Docs
Hello and Thanks for your aswer, actually i'm receiving this data from a 3rd part vendor soo the data model is perfectly set and my time dimension is clean.
I also calculated my last year sales with this formula :
Sorry to say that but this line:
LY_Sales = CALCULATE([total_value],SAMEPERIODLASTYEAR('Sell-out Gers'[Date].[Date]))
is a clear sign your model is WRONG. Simply wrong.
But I don't have time to explain why. There are too many articles (even on this forum) that explain why. I don't have time to repeat.
User | Count |
---|---|
11 | |
9 | |
6 | |
5 | |
4 |