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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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