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 everyone, I am having a hard time figuring out how to do this.
Question: How can I remove empty values on the cumulative measure?
Here's my cumulative measure
Total Sales - Journals (Cummulative) =
CALCULATE(
[Total Sales (Journals)],
FILTER(
ALLSELECTED( Dates),
Dates[Date] <= MAX( Dates[Date])
)
)
Total Sales (Journals) =
CALCULATE (
0 - SUM ( 'Journals'[Net Amount FX] ),
FILTER (
'Accounts',
Accounts[Account Type] = "Sales"
|| Accounts[Account Type] = "Revenue"
),
USERELATIONSHIP ( Journals[ID], 'Tracking Category CONNECTIONS'[ID] )
)
Solved! Go to Solution.
@ronaldbalza2023 What do you mean by 'how do you remove empty values?
Assuming you want to stop the line before it flattens out?
You can do this with an if statement and define the LastDate, similar to this measure I've used in the COVID NZ report https://excelwithallison.blogspot.com/search/label/COVID19 :
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@ronaldbalza2023 What do you mean by 'how do you remove empty values?
Assuming you want to stop the line before it flattens out?
You can do this with an if statement and define the LastDate, similar to this measure I've used in the COVID NZ report https://excelwithallison.blogspot.com/search/label/COVID19 :
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
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 |
---|---|
104 | |
95 | |
80 | |
67 | |
62 |
User | Count |
---|---|
147 | |
109 | |
107 | |
85 | |
63 |