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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
phamtrinh96
Helper II
Helper II

[ Group By Number with Measure ]

Hi , I have a table 

Capture.PNG

I have 4 column CustomerNumber , TransactionDate , RestaurantCode , Amount. 

I want to create " GroupByNumber" , it is the number of "CustomerNumber" appearances. But I want to create it with Caculated "Measure".

Pls help me.

 

1 ACCEPTED SOLUTION

@phamtrinh96 

 

GroupBy= CALCULATE(COUNTROWS(Sheet1), ALLEXCEPT(Sheet1, Sheet1[CustomerNumber]))




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

6 REPLIES 6
vanessafvg
Super User
Super User

@phamtrinh96  can you provide the data in text form, not an image?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi , This link contain file powerBI

https://drive.google.com/file/d/1QrLu6aLuFyFgHqHp5F2a2O6NPibNbkgt/view?usp=sharing

Please help me. I need to your support.

Thank you

@phamtrinh96 

 

GroupBy= CALCULATE(COUNTROWS(Sheet1), ALLEXCEPT(Sheet1, Sheet1[CustomerNumber]))




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Hi , I don't see expect result , Pls check help me 

Capture.PNG

I want create with "measure" , not " column "

@phamtrinh96  may i ask the issue with it being a column?  if you want to group by you will need to create a new table with summarize as far as i know if you want to incluce all the columns.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.