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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.