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 August 31st. Request your voucher.

Reply
rachaelwalker
Resolver III
Resolver III

percentage using values from two different tables

I have two tables Projects and Warranty Tickets. I need to calculate the percentage of projects that have had a warranty ticket opened against it. In some cases, there are multiple tickets but I dont want that to impact the the percentage. For the example below, I would expect to see 15 projects have had tickets out of the 101 total = 14.9%. I am also looking for the same percentage but only calcuate the last 90 days based on date entered while ignoring any other filter visuals that may be applied. 

 

rachaelwalker_0-1729179635136.png

 

rachaelwalker_1-1729179658200.png

 

7 REPLIES 7
Anonymous
Not applicable

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @rachaelwalker ,

I am also looking for the same percentage but only calcuate the last 90 days based on date entered while ignoring any other filter visuals that may be applied. 

Your requirement is to calculate data with a warranty effective date within 90 days right? Suppose today is 10/22/2024,90 days before the date is 7/24/2024.The filter condition is 'Project Warranty Start' >= 7/24/2024 , 'Date Entered' >= 7/24/2024.If I understand it incorrectly Please correct me.

Use the following DAX expression to create a measure

Measure = 
VAR _a = CALCULATE(DISTINCTCOUNT('Table'[Project Number]),'Table'[Date Entered] >= TODAY() - 90 && 'Table'[StartDate] >= TODAY() - 90 )
VAR _b = COUNTROWS(FILTER('Projects',[Project Warranty Start] >= TODAY() - 90))
RETURN DIVIDE(_a,_b)

 

Best Regards,
Wenbin Zhou

The warranty effective dates are between (Project Warranty Start Date) and (Project Warranty Date + 90 Days) so not 90 Days from today but from the Project Warranty Start. If a ticket is entered between between those dates, it goes against the project. There could be multiple tickets entered against a project but I dont want that to impact the %. Hopefully I am making sense

 

@Anonymous I will plug these in and see how it looks against my dataset. Thank you!

 

lbendlin
Super User
Super User

Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).

Do not include sensitive information. Do not include anything that is unrelated to the issue or question.

Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...

Please show the expected outcome based on the sample data you provided.

Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

@lbendlin thank you for the tips. here is a pbix file with sample data: https://drive.google.com/file/d/1_ZphAFTa0eAJgpajmEk4D2jDBLPB7HSm/view?usp=sharing

What does it mean when tickets are entered before the warranty start date?

lbendlin_0-1729291296291.png

 

 

Why do some projects not have a warranty start date?

lbendlin_1-1729291322966.png

 

 

 

I am also looking for the same percentage but only calcuate the last 90 days based on date entered

 

100% by definition.  Unless you mean "last 90 days based on warranty start date"?

The project may consist of several phases. The warranty date is defined at the final phase, marking the date when official completion of the project. Alternatively, it may arise if the project manager deviates from processes. Very frustrating I know. I told them that I will provide the data/metrics, along with an explanation of how it's calculated, so they can assess whether a process change is necessary.

 

If there is no warranty date, the project is not yet under warranty, and no tickets should be submitted against it. I included the entire dataset in case I need to apply a filter to the formula.

 

Thank you for asking these questions to better understand the data. I appreciate your help and expertise! 

@lbendlin forgot to tag

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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