Forum Discussion
My Measure/new Column won't work
Hi nataliesmiy1357 ,
Thanks for reaching out to us with your requirement. Base on your description, there are two tables: 'Downtime Report' and 'OR Report'. And you want to get the percentage base on the following calculation logic. Am I right?
Adjusted OR:
= if(
if(( OR Report [Line Result] - OR Report [ Planned OR%]) < 0 , OR Report [Line Result] - (OR Report [Line Result]- OR Report [ Planned OR%]) * Downtime Report[% of DT Minutes] , OR Report [Line Result] + (OR Report [Line Result] - OR Report [ Planned OR%]) * Downtime Report[% of DT Minutes]) > 100%, 100%,
if (( OR Report [Line Result]- OR Report [ Planned OR%]) < 0, OR Report [Line Result]- (OR Report [Line Result]- OR Report [ Planned OR%]) * Downtime Report[% of DT Minutes], OR Report [Line Result]+ (OR Report [Line Result]- OR Report [ Planned OR%]) * Downtime Report[% of DT Minutes])
Could you please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with special examples and screenshots? And is there any relationship between these two tables? If yes, please provide the relationship info. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
- nataliesmiy13572 years agoHelper IV
Here is a screenshot of the data that I'm playing with:
I created a unique id to link the two tables. It's the date and plant name: