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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
lilykim
New Member

How do I insert different date filter for one column only?

Week EndingActualGoalCurrent Ratio %Previous Ratio %
MM/DD/YYYY HH:MMAB(Table[Actual]/Table[Goal])*100((Table[Actual]/Table[Goal])*100)-7 ???

 

Hello,

 

I'm trying to display the Current Ratio % value and Previous Ratio % value simultaneously, by applying a filter onto column [Previous Ratio %].

 

The Current Ratio % is a new column with the calculations = (Table[Actual]/Table[Goal])*100
I also have a measure for previous week = previous_week_ending = DATEADD(Table[week_ending],-7,DAY)

 

So far I have tried:

  • CALCULATE(Table[Current Ratio %],previous_week_ending)

and

  • CALCULATE((Table[Actual]/Table[Goal])*100,previous_week_ending)

but those didn't work due to syntax and dax errors.

Please help me out!

1 ACCEPTED SOLUTION

@lilykim 

pls try this

Measure 2 = sumx(FILTER(all('Table'),'Table'[week ending]=max('Table'[week ending])-7),[Measure])

11.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

3 REPLIES 3
ryan_mayu
Super User
Super User

could you pls provide some sample data and the expected output?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi @ryan_mayu

Here is sample data:

lilykim_0-1702349396590.png
In a PBI table visualization, I want the last column [Previous Ratio %] to output the last week ending's [Current Ratio %].

 

@lilykim 

pls try this

Measure 2 = sumx(FILTER(all('Table'),'Table'[week ending]=max('Table'[week ending])-7),[Measure])

11.PNG

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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