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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

DAX- largest value from coloumn and search in different table

Dear Community,

i need your help with the creation of a DAX-programming for Microsoft PowerBi.

 

In the "Project_No" column there are many entries with the associated "Project_Step" column.

I need every single entry in "Project_No" with the corresponding highest entry in "Project_Step" (It can also be that 000 is the highest value).

Then i have to check if the highest combination of Project_No & Project_Step from Table 1 is in the Project coloumn in Table 2.

If it is, i don´t need it.

 

If it doesn´t, i need the correspondig "value".

Actually "Value" only occourse in the highest "Project_Step". Only in exceptional cases also in lower values and i have to add these.

 

DanielT1207_0-1612770609280.png

 

 

I already have the following formula to find the highest combination of "Project_No" and "Project_Step".

= calculate(max(Table[Project_Step]), filter(Table, Table[Project_Step] = calculate(max(Table[Project_Step]), allexcept(Table, Table[Project_No]))) )

 

I would be very grateful if you can help me, i despair ! Thank you so much

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , A new column in table 2

new column =
var _max = maxx(filter(Table1, Table2[project_no] = Table1[project_no] ), Table1[project_step])
return
maxx(filter(Table1, Table2[project_no] = Table1[project_no] && Table1[project_step] = _max), Table1[value])

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi @amitchandak 

The function works but unfortunately it gives me many of the same values ​​from table 1 and table 2. I don't need the values ​​from the same Project from  table 1 and table 2.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.