Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I think you could do this with just an IF statement and not need a 2nd table with grades.
Please post some sample data, too hard to give an accurate solution without it.
regards
Phil
Proud to be a Super User!
Didn't think about that
i'll try this out and inform you of the result sir
@Islam -
I tried to learn something new with @ImkeF solution at https://www.thebiccountant.com/2018/02/15/generic-switch-function-query-editor-in-power-bi-and-power... however, I failed trying to do a comparative operator; see [Custom] (Maybe ImkeF can show us how to do it with her nifty function). Then I found https://community.powerbi.com/t5/Desktop/How-to-lookup-values-in-another-table-in-the-Query-Editor/t... which produced:
Proud to be a Super User!
Unfortunately that's not what i meant sir
i have 2 tables
one fact table with all employees transactions including secret report degree
and another disconnected table with grade defined name ( fair - good - very good - excellent) and every grade have a range of lower and upper limit of grade
what i want is add column in the fact table doing the following:
look up each single employee degree in the whole limits for each category ( fair - good - very good - excellent) in the disconnected table and return the matching grade title into that added column in the fact table
Thanks for help sir but unfortunately it doesn't help coz i have a table with lower limit column and upper limit column for each category
@Islam - You don't need min/max limits as you can see in my sample. The operator acts like the rules of min/max "organically". Try it with your existing data [Max] and see if it produces the results you intend.
Proud to be a Super User!
Ok I'll apply this and see what happens and inform you about it
Hey @Islam,
please create a pbix that contains sample data but still reflects your data model. Upload the pbix to onedrive or dropbox and share the link. If you are using Excel to create the sample data and share xlsx as well.
Regards,
Tom
I'm using power query and power pivot for excel but np I'll upload a sample and provide you with the link
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
96 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |