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

DAX - Grouping on multiple columns and the count

I have a DB table which has data as the following:

Please help on the below task asap.

Input Data  Output Data
 AreaElement  Result  
H.0100H.0100.01.01.01   AreaElementRequired Result
H.0100H.0100.01.01.01  H.0100H.0100.01.01.014
H.0100H.0100.01.01.01  H.0100H.0100.01.01.022
H.0100H.0100.01.01.01  H.0130H.0130.01.033
H.0100H.0100.01.01.02  H.0130H.0130.04.015
H.0100H.0100.01.01.02     
H.0130H.0130.01.03     
H.0130H.0130.01.03     
H.0130H.0130.01.03     
H.0130H.0130.04.01     
H.0130H.0130.04.01     
H.0130H.0130.04.01     
H.0130H.0130.04.01     
H.0130H.0130.04.01     

 

Thank a Lot!!!

1 ACCEPTED SOLUTION
reddeppag
Frequent Visitor

I got the solution on the below question NumberOfOpenPO's = CALCULATE ( COUNTROWS ( VendorData), ALLEXCEPT ( VendorData,VendorData[Delivery Area], VendorData[WBS Element],VendorData[Agebucket]) ) Happy Coding!!!!!!!!!!!

View solution in original post

3 REPLIES 3
reddeppag
Frequent Visitor

I got the solution on the below question NumberOfOpenPO's = CALCULATE ( COUNTROWS ( VendorData), ALLEXCEPT ( VendorData,VendorData[Delivery Area], VendorData[WBS Element],VendorData[Agebucket]) ) Happy Coding!!!!!!!!!!!
Ashish_Mathur
Super User
Super User

Hi @reddeppag,

 

In the second suggestion posted by @v-yulgu-msft, the function should be COUNTA().


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @reddeppag,

 

Two ways for your reference.

 

1. Create a calculated table like below.

Output =
SUMMARIZE (
    Input,
    Input[Area],
    Input[Element],
    "Count value", COUNT ( Input[Element] )
)

1.PNG

 

 

2. Based on your Input table, create a measure.

Required result = COUNT(Input[Element])

3.PNG

 

Then, in report view, insert a table visual, directly add above measure into visual.

4.PNG

 

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.