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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
AndrewHam
Helper I
Helper I

MAXIF Custom Column

hi All,

I am able to created a calculated column for MAXIFS in power BI. However, I am not able to see the calculated column when editing query. (If I'm wrong about the ability to edit query for calculated column, let me know how can i do it. Thanks). Is there a way to created a MAXIFS using edit query-add custom column ? How should i write the formula to do that ? Any guidance is greatly appreciated.

 

Andrew

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @AndrewHam ;

If you create columns with DAX, you can't see them in Power Query, and if you create custom columns in Power Query, you can see them on desktop, which is by design. Depending on your formula, if you convert to Power Query, you can use Group By.

vyalanwumsft_0-1672391530634.png

Then expand it.

vyalanwumsft_1-1672391563597.png

The final result:

vyalanwumsft_2-1672391584026.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @AndrewHam ;

If you create columns with DAX, you can't see them in Power Query, and if you create custom columns in Power Query, you can see them on desktop, which is by design. Depending on your formula, if you convert to Power Query, you can use Group By.

vyalanwumsft_0-1672391530634.png

Then expand it.

vyalanwumsft_1-1672391563597.png

The final result:

vyalanwumsft_2-1672391584026.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for the advice. Let me explore the solution provided and see the outcome.

 

AndrewHam
Helper I
Helper I

I have included the calculated column formula here;

Latest Revision = Calculate(MAXA(ligechCdeaff[ind_devis]),FILTER(ligechCdeaff,ligechCdeaff[CdeAffaire.cod_affaire]=EARLIER(ligechCdeaff[CdeAffaire.cod_affaire]))).
Any advise to convert this to custom column formula will be greatly appreciated

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.