Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
can you help me please to add calculate column (cumul) that calculate the the cumulative budget total per client per month for each year as explained in the table
thank you
Solved! Go to Solution.
Hi,
This should ideally be solved with a measure but since you want a calculated column formula solution, write these calculated column formulas
Date = 1*("1/"&Data[Month]&"/"&Data[Year])
RT = CALCULATE(SUM(Data[Budget]),FILTER(Data,Data[Client Number]=EARLIER(Data[Client Number])&&Data[Date]<=EARLIER(Data[Date])))
Hope this helps.
Maybe TOTALYTD() can halp in your case
Hi,
This should ideally be solved with a measure but since you want a calculated column formula solution, write these calculated column formulas
Date = 1*("1/"&Data[Month]&"/"&Data[Year])
RT = CALCULATE(SUM(Data[Budget]),FILTER(Data,Data[Client Number]=EARLIER(Data[Client Number])&&Data[Date]<=EARLIER(Data[Date])))
Hope this helps.
Hi @Ashish_Mathur ,
Hope you are well.
I'm having the same problem, but using measure, not new columns, can you give a little advice? Thanks in advance.
Please use the DATESYTD function within the CALCULATE function.
Hi @Ashish_Mathur ,
Thank you so much for your attention.
I tried the below DAX, but it did not work.
AmountNet_MTD =
CALCULATE(
sum('Data'[credit_amount])
-sum('Data'[Deb_amount])
,DATESMTD('Data'[Accounting_Date])
)
I used the Calculate as below, which is ok, but the total is incorrect.
AmountNet_MTD2 =
CALCULATE(sum('Data'[credit_amount])-sum('Data'[Deb_amount])
,FILTER('Data'
,'Data'[Accounting_Date_YYYYMM]=EARLIER('Data'[Accounting_Date_YYYYMM])
&&'Data'[Accounting_Date]<=EARLIER('Data'[Accounting_Date])
&&'Data'[account_id]<=EARLIER('Data'[account_id])
&&'Data'[Items_L1]="L1"))
Thanks again.
Hi,
Share some data to work with, explain the question and show the expected result.
You are welcome.
@MagMag31 See if this helps:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
75 | |
63 | |
51 | |
48 |
User | Count |
---|---|
204 | |
86 | |
64 | |
59 | |
56 |