Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
98 | |
90 | |
82 | |
73 | |
67 |
User | Count |
---|---|
115 | |
102 | |
98 | |
71 | |
66 |