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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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