Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Custom Sort x-axis

Hi I have tried to find some similar issues but was not successful, so apologies if there is already many threads about this issue.:) I have a running total, which counts created issues pr month, this works fine, however on the chart i cannot split it in years. E.g. i want chart to show only the last 12 month , but still accumulated or only the months in 2017 Note, is it not possible to add pictures`?
1 ACCEPTED SOLUTION


@Anonymous wrote:

i tried, but cannot get it to work

Do you use the year and month from calendar? 

i tried both from calendar and from the table withcal1.PNGcal2.PNG


@Anonymous,

In your first screenshot, please choose the "Expand all down one level in the hierarchy" button to drill down your chart.
1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Employee
Employee

@Anonymous,

How do you create the chart and what formula do you use to create the running total? You can upload screenshots using the button as below.
3.PNG

In my Desktop, I create a running total measure and a calculated column using the DAX below in my sample table.

running total = CALCULATE(SUM(Sheet5[SalesAmount]),FILTER(ALL('Calendar'),'Calendar'[DateKey]<=MAX('Calendar'[DateKey])))
last12month = if(AND(Sheet5[DateKey]>=TODAY()-365,Sheet5[DateKey]<=TODAY()),1,0)

Then create a chart as follows.
1.PNG2.PNG


Regards,

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

i tried, but cannot get it to work

Do you use the year and month from calendar? 

i tried both from calendar and from the table withcal1.PNGcal2.PNG


@Anonymous wrote:

i tried, but cannot get it to work

Do you use the year and month from calendar? 

i tried both from calendar and from the table withcal1.PNGcal2.PNG


@Anonymous,

In your first screenshot, please choose the "Expand all down one level in the hierarchy" button to drill down your chart.
1.PNG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Smiley Happy

thank you very much, works fine

Anonymous
Not applicable

hi 

 

My running total is like this

 

Running total = CALCULATE(COUNT('Case Reg'[Case Number]);FILTER(ALLSELECTED('Case Reg');'Case Reg'[Created On].[Date]<=MAX('Case Reg'[Created On].[Date])))

 

and yes the chart i would like to have shown is just like the one you have posted

 

 

 

example.pngex2.png

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.