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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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