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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
newbie_dj
Regular Visitor

Get the correct grade value from the table based on the percentage value

I am a newbie in power bi and I have the follwoing tables:

 

Growth rate ( min max growth rate that determines what grade level depends on month year)

newbie_dj_1-1660318300789.png

Grade table (different every month and year)

image.png

 

I want to know the grade value based on the difference %

image.png

 

For example, if yearmonth 202201 and if difference% is -10.46% then it will be 0.00% (grade 0)  because it is between the min max growth rate in the growth table.

But if yearmonth is 202204 and if the difference is 5.50% then it will be (grade 5 based on growth rate) because 5.50% is between the min max growth rate

newbie_dj_2-1660318471691.png

 

then the value will be 0.70% from the grade table 

newbie_dj_4-1660318870264.png

 

 

Thus in my final table

newbie_dj_3-1660318805825.png

 

I can't seem to find or create a dax that will do this. Any response is highly appreciated.

I really need help! 😞

Thanks a lot.


 

1 REPLY 1
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. I can only help you with meaningful sample data.
Please paste the data into a table in your post or use one of the file services like OneDrive or Google Drive. Screenshots of your source data are not useful.
Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...
https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Kudoed Authors