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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

M formula/script for Custom Groups in Query editor?

Is it possible to obtain the M script/formula for custom groups previously established?

 

the reason I ask is I have grouped items in Report A and would like to use the same type of grouping in Report B.

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Custom Grouping in report view does not generate any DAX or M codes, so you have to replicate the custom grouping in your other report. You can perhaps create custom colums using M codes (preferred) or DAX for grouping, in the event that you need to replicate it in the future reports

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

@Anonymous,

Right click on the query that contains the grouping step, and select Advanced Editor. You can just copy that grouping step, paste it into the other report, and make changes according to your query.

Anonymous
Not applicable

My Custom Grouping was done under "Report View", so no code was generated in Advanced Editor.

Anonymous
Not applicable

Custom Grouping in report view does not generate any DAX or M codes, so you have to replicate the custom grouping in your other report. You can perhaps create custom colums using M codes (preferred) or DAX for grouping, in the event that you need to replicate it in the future reports

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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