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.
I have 3 years of revenue data (2019 - 2021) for a group of vendors.
The table name is 'data', and the fields are [Year], [Vendor], [Vendor Revenue].
I am calculating market share and YoY revenue change for each vendor, as follows:
[Revenue] = SUM('data'[Vendor Revenue]) // currency
[Market Share] = DIVIDE( [Revenue], CALCULATE( [Revenue], ALL('data'[Vendor])), 0) // percent
[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('data'[YEAR])), 0)
I want to be able to plot the data using a scatter chart, with each vendor appearing twice one marker for 2019-2020 and and one for 2020-2021, but I'm only getting the 2020-2021 data points.
I know I could do this with calculated columns in the data table, but I'm hoping I can make it dynamic since I want to add a field for product and be able to dynamically filter.
If my question doesn't make sense, let me know and I'll provide sample data.
Thanks in advance.
Solved! Go to Solution.
@Anonymous , For time intelligence to work Join your date of the table with the date table marked as date table and use date from date table
[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('Date'[Date])), 0)
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
@amitchandak Thanks. I actually was using a date table, which I had identified as such but had forgotten to join to my data table. 😜
@Anonymous , For time intelligence to work Join your date of the table with the date table marked as date table and use date from date table
[YoY Change] = DIVIDE( [Revenue], CALCULATE( [Revenue], SAMEPERIODLASTYEAR('Date'[Date])), 0)
Power BI — Year on Year with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
https://www.youtube.com/watch?v=km41KfM_0uA
Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
9 | |
7 | |
6 | |
6 |
User | Count |
---|---|
29 | |
11 | |
11 | |
10 | |
6 |