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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
giorgiokatr
Helper V
Helper V

Calculated table summarize or groupby

I have a table with a column areas and a column store code etc
Example
Area Store Code
a. 2
a. 2
a. 3
a. 3
a. 4
b. 5

How can i create a calculated table to have the unique values
Eg
a. 3
a. 4.
And so on
Should i use summarize or group by?
1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @giorgiokatr,

 

It seems that you want to return unique pair of Area and Store Code, right?

 

You can create a table with DAX below:

 

Table = GROUPBY('Table1',Table1[Area],'Table1'[Store Code])

 

q3.PNG

 

Table 2 = SUMMARIZE('Table1',Table1[Area],'Table1'[Store Code])

 

q4.PNG

 

Best Regards,
Qiuyun Yu

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

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @giorgiokatr,

 

It seems that you want to return unique pair of Area and Store Code, right?

 

You can create a table with DAX below:

 

Table = GROUPBY('Table1',Table1[Area],'Table1'[Store Code])

 

q3.PNG

 

Table 2 = SUMMARIZE('Table1',Table1[Area],'Table1'[Store Code])

 

q4.PNG

 

Best Regards,
Qiuyun Yu

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

Thanks! Great!

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.