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

last Month value

Hi, 

I need Help,

 

How I can Get last mont total_balance ?

and

How I can Get yestarday total_balance ?

dependen on the table in image bellow , I did relation between Data tabel with Date column and DepDepositHistory Table with As_of_Date column

 

test last.JPG

 

 

Regards,

2 REPLIES 2
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @Anonymous,

 

You could refer to the two measures below.

 

yesterday = CALCULATE(SUM(balance_[Balance]),PREVIOUSDAY('Date Table'[Date]))
last month = CALCULATE(SUM(balance_[Balance]),PREVIOUSMONTH('Date Table'[Date]))

And the output is below.

 Capture.PNG

 

 

If you need additional help please share some data sample and expected output.

 

 

Best Regards,

Cherry

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

Hi, 

I need Help,

 

How I can Get last mont total_balance ?

and

How I can Get yestarday total_balance ?

dependen on the table in image bellow , I did relation between Data tabel with Date column and DepDepositHistory Table with As_of_Date column

 

test last.JPG

 

 

Regards,

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.