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
VilmaBeina
Frequent Visitor

use groupby/ summarize in sumx measure

Hello, 
I'm new in Power BI, so I need help to write dax measure 🙂
I have table Disconnections (with a lot of disconnections (Disc_ID), there are a lot of disconnected customers (OBJ_ID), they appear several times in one disconnection, and customers (Disc_Power). From this table, I need to find the Disc_Power value for each customer (OBJ_ID) in each disconnection (Disc_ID) and then divide it by total all my customers Power, which is in another dimension table Object (Customers (OBJ_ID) and theirs (Power).)

These two tables are connected with OBJ_ID key.

 

Nepl_ASIFI_ALL =
DIVIDE(
sumx(
GROUPBY(Disconnections ;
Disconnections [Disc_ID];
Disconnections [OBJ_ID];
"OBJ_Power"
Disconnections [Disc_Power]);
sumx(
FILTER('Object';
'Object '[valid till]=BLANK());
'Object'[Power]
))


So there is a mistake with bolded part, could anyone help me by fixing it? 🙂

Thanks in advance, Vilma
 

1 REPLY 1
Anonymous
Not applicable

First piece of advice is this:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

Second piece of advice is this:
Do not use GRUPBY. Use the combination of ADDCOLUMNS/SUMMARIZE.

Best
D.

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.