Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

View all the Fabric Data Days sessions on demand. View schedule

Reply
benjaminhoang
Helper III
Helper III

Calculation to display specific dates on a card - previous workday

Hey Guys,

 

I have a card that currently pull data from excel sheet with a date and and amount. I currently manually change the day to show previous days amount. The problem I am having is I want this automated to show

 

for Monday it will show friday, saturday and sunday

Tuesday will show monday

Wednesday will show tuesday

Thursday will show wednesday
Friday will show thursday

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@benjaminhoang,

 

You may use WEEKDAY Function in nested IF Function or SWITCH Function to add a measure.

http://community.powerbi.com/t5/Desktop/How-to-display-total-document-number-for-last-month-data-bas...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@benjaminhoang,

 

You may use WEEKDAY Function in nested IF Function or SWITCH Function to add a measure.

http://community.powerbi.com/t5/Desktop/How-to-display-total-document-number-for-last-month-data-bas...

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors