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
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
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.