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
I would like to create the report dashboard which has charts comparing the sales amount of 2 products by the number of months after launch.
I tried to create the new date table which contains the column of launch date and launch date +30 days(1 month after launch), +60 (2 month after launch),... for time dimension.
Pleae refer to the following code (have errors when I run with DAX Studio) and report screenshot.
MonthfromLaunch = ADDCOLUMNS (Datefromdef, "LAUNCHDATE", DATE(2018,05,15), "MonthBefore", DATESINPERIOD(vd_invoice[ShipingDay],DATE(2018,05,15),-30,day), "FirstMonth", DATESINPERIOD(vd_invoice[ShipingDay],DATE(2018,05,15),+30,day), "SecondMonth", DATESINPERIOD(vd_invoice[ShipingDay],DATE(2018,05,15),+60,day) )
Anyone has a better solution to create this kind of report?
P.S. The Launch Date is not fixed and will be per product, does Power BI have the function to input the date and use it as variable for the launch date?
Thank you in advance
Perhaps, you can create a measure to calculate the number of months between the product launch date and the invoice date:
NoOfMonths = DATEDIFF("2015-08-15",YourInvoiceDate,MONTH)
Hello, thank you for the reply. I jut created the new thread here
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 |
---|---|
113 | |
97 | |
79 | |
73 | |
56 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |