cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Green_Boby
Frequent Visitor

Filter : day minus 7

Good morning,

 

I am trying to calculate the Technical_dispatch_reliability of the same day of last week (ie minus 7 days). I thought the screenshot below would do the job but it does not: there is a calculation but I don't get the same result manually. Please note that as this is a dynamically connected file, I cannot create new colums in my table, I can only use measures.

 

Technical_dispatch_reliability : data to be calculated from rough data

STD_DATE : Column containing dates of some rough data

 

Capture.JPG

 

 

Is my fomula correct?

 

Best regards,

1 ACCEPTED SOLUTION

Hello,

 

I found out why my calculation was wrong: nothing to do with my filter actually. Be advised, the one I'm using works fine, but yours is not: as this is a connected table, I cannot use the DATEADD.

 

Thank you for you help anyway!

 

Best regards,

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

Hi Green_Boby,

 

Modify your measure as below and check if it can meet your requirement:

 

Technical_dispatch_reliability_15_TO_D-7 =
CALCULATE (
    Technical_dispatch_reliability_15_TO,
    FILTER ( OPS_LEG, OPS_LEG[STD_DATE] = TODAY () - 7 )
)

Regards,

Jimmy Tao

Hello,

 

I found out why my calculation was wrong: nothing to do with my filter actually. Be advised, the one I'm using works fine, but yours is not: as this is a connected table, I cannot use the DATEADD.

 

Thank you for you help anyway!

 

Best regards,

Stachu
Community Champion
Community Champion

try this

Measure = CALCULATE([Technical_dispatch_reliability_15_TO];DATEADD('OPS_LEG'[STD_DATE];-7;DAY)


Did I answer your question? Mark my post as a solution!
Thank you for the kudos 🙂

Proud to be a Super User!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors