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 All,
I want to compare different products sales. Those products were launched on different dates, so they have different first sale month, second, third and so on, just like that sample showing in the table below. Now I want to compare different productions' first, second until the last month sales in line chart, similar with the chart below. How could I create procedure with DAX in Power BI?
Thanks!
Donna
Solved! Go to Solution.
@DonnaC , You can create a new columns
first sales date = minx(filter(table, [product] =earlier([product])), [sales Date])
month since first sales = datediff([first sales date],[sales Date],month)
also refer: https://www.youtube.com/watch?v=Q1vPWmfI25o
@DonnaC , You can create a new columns
first sales date = minx(filter(table, [product] =earlier([product])), [sales Date])
month since first sales = datediff([first sales date],[sales Date],month)
also refer: https://www.youtube.com/watch?v=Q1vPWmfI25o
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 |
---|---|
99 | |
98 | |
79 | |
74 | |
66 |
User | Count |
---|---|
136 | |
109 | |
104 | |
82 | |
73 |