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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mottamatheus835
Frequent Visitor

Sum and Group especific dimensions

Olá,

Preciso agrupar de alguma forma algumas dimensões específicas da tabela abaixo. Tentei fazer com "Groupby", mas não consegui. 

O grupo se chamaria "Mídia Paga" e seriam agrupados : 

google / cpc 

aquiles / abandoned

facebook / cpc_conv

aquiles / saleincomplete

voxusmediamanager / cpl

 

As outras dimensões seriam agrupados em "Outros". Não sei como poderia fazer, talvez um AllExcept com alguma outra função.

 

 

 

 

source medium revenue 
google / cpc R$        75.000,00
voxusmediamanager / cpl R$        10.000,00
aquiles / abandoned R$          4.500,00
facebook / cpc_conv R$          6.000,00
facebook/ cpc_cv R$          2.000,00
google / organic R$      100.000,00
linktree / referral R$          2.000,00
Afilio / afiliado R$          1.000,00
bing / organic R$              500,00
aquiles / saleincomplete R$          1.000,00
l.facebook.com / referral R$          2.000,00
IGShopping / Social R$              500,00
Salesforce / Email R$              500,00
Direct / not set R$        10.000,00
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mottamatheus835 ,

 

Depending on your requirements description, you want to implement the field "source medium" name grouped according to your own needs, right? If this is the case, you can try using this DAX expression to create a calculated column to achieve your needs:

 

 

Group name =

IF('Table'[source medium] in {"google / cpc", "aquiles / abandoned", "facebook / cpc_conv", "aquiles / saleincomplete", "voxusmediamanager / cpl"},"Mídia Paga","Outros")

 

Then the result is as follows.

vtangjiemsft_0-1671695233637.png

Best Regards,

Neeko Tang

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

1 REPLY 1
Anonymous
Not applicable

Hi @mottamatheus835 ,

 

Depending on your requirements description, you want to implement the field "source medium" name grouped according to your own needs, right? If this is the case, you can try using this DAX expression to create a calculated column to achieve your needs:

 

 

Group name =

IF('Table'[source medium] in {"google / cpc", "aquiles / abandoned", "facebook / cpc_conv", "aquiles / saleincomplete", "voxusmediamanager / cpl"},"Mídia Paga","Outros")

 

Then the result is as follows.

vtangjiemsft_0-1671695233637.png

Best Regards,

Neeko Tang

If this post helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.