The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I am still struggling with a line chart that shows monthly year to date totals in a line chart, with the last 3 years graphed. Management wants something that looks like this....
I am using a financial date table with fiscal year, fiscal month beginning on Nov 1 and end Oct 31. I can get PBI to graph out a month by month total, but can't figure out how to graph the cumulative sales month to month. I get the following:
When I put my data into a matrix visual to see what I am working with, I get the month names on the Rows/ Fiscal Year on the columns/ and Sales Month to Date as the values. Looks correct in a table format but again going to a line chart it doesn't want to work. suggestions please. Marty
Solved! Go to Solution.
So the dax formulas that were suggested as an answer to my question about cumulative months sales , year over year, did not work for me. ( I am definately not an expert in DAX which is probably the reason my dax formula attemps did not work for me).
The solution I found came form watching "Guys in a Cube" youtube channel;
I had already created a date table and by using the New quick measure option in the field that was presented in the video. I created a quick measure for Sales running total in Fiscal Month. Fiscal month was from my date table I created to set the first month to our first fiscal month of November.
Hi @mgradijan ,
Did the above formula works for you? If it works for you, please consider mark the reply as solution.
If not, please share some sample data to us.
Best Regards,
Jay
The formula Invoiced sales YTD = CALCULATE ( SUM ( Invoice_Master[INVOICED SALES] ), DATESYTD ( 'Date Table'[Date])) did not solve the problem.
After playing around with that formula, I still get the following:
That screen shot is too small, I can't tell what is going on in the graph.
So the dax formulas that were suggested as an answer to my question about cumulative months sales , year over year, did not work for me. ( I am definately not an expert in DAX which is probably the reason my dax formula attemps did not work for me).
The solution I found came form watching "Guys in a Cube" youtube channel;
I had already created a date table and by using the New quick measure option in the field that was presented in the video. I created a quick measure for Sales running total in Fiscal Month. Fiscal month was from my date table I created to set the first month to our first fiscal month of November.
If you have a calendar table it will be just something like this:
YTD Sales = CALCULATE([Sales Amount],DATESYTD('Date'[Date]))
Then put the month name on the axis and the year on the legend.
Change it to this.
Invoices Sales YTD =
CALCULATE ( SUM ( 'RJM_Invoices'[Invoiced Sales] ), DATESYTD ( 'Date Table'[Date] ) )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
80 | |
74 | |
50 | |
42 |
User | Count |
---|---|
135 | |
120 | |
75 | |
65 | |
64 |