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

Running total does not work when excluding a column in the line and stacked column chart

The chart below is the line and stacked column chart with AP/AR amount for column values and running total (cash) for line values. What I'd like to do is to exclude the AR amount on 2019/04/25 and see what will happen with the running total (cash) in the next few days.

 

Original chartOriginal chart

After I excluded the AR amount on 2019/04/25, I get the graph shown below which is not what I expected to get.

 

Actually getActually get

What I expected to get is like the figure I made below. I think there is something to do with the DAX of running total (cash), but I have no idea how.

I put the DAX of Running total in Net due date (Cash) down below. If it may help. Any idea?

 

Expected to getExpected to get

Running total in Net due date (Cash) = 
CALCULATE(
	[Amount],
	FILTER(
		ALLSELECTED('Cash flow analysis'[Net due date]),
		ISONORAFTER('Cash flow analysis'[Net due date], MAX('Cash flow analysis'[Net due date]), DESC)
	)
) 

 

PBIX file: Cash flow analysis.pbix

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

You can remove fields which yo defined in 'allselected' function to receive all filter effect and it will display the graph you wanted:

Running total in Net due date (Cash) = 
CALCULATE(
	[Amount],
	FILTER(
		ALLSELECTED('Cash flow analysis'),
		ISONORAFTER('Cash flow analysis'[Net due date], MAX('Cash flow analysis'[Net due date]), DESC)
	)
)

11.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @Anonymous ,

 

How did the amount calculated? Can you please share a pbix file with some sample data for test?

 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi Xiaoxin,

 

I have attached the pbix file in the end of the original post.

 

Thanks,

Isaac

Hi @Anonymous ,

 

You can remove fields which yo defined in 'allselected' function to receive all filter effect and it will display the graph you wanted:

Running total in Net due date (Cash) = 
CALCULATE(
	[Amount],
	FILTER(
		ALLSELECTED('Cash flow analysis'),
		ISONORAFTER('Cash flow analysis'[Net due date], MAX('Cash flow analysis'[Net due date]), DESC)
	)
)

11.png

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.