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.
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.
After I excluded the AR amount on 2019/04/25, I get the graph shown below which is not what I expected to 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?
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
Solved! Go to 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) ) )
Regards,
Xiaoxin Sheng
Hi @Anonymous ,
How did the amount calculated? Can you please share a pbix file with some sample data for test?
Regards,
Xiaoxin Sheng
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) ) )
Regards,
Xiaoxin Sheng
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 |
---|---|
111 | |
95 | |
77 | |
69 | |
52 |
User | Count |
---|---|
146 | |
109 | |
106 | |
88 | |
61 |