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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Earkkaperk
Frequent Visitor

SUMMARIZE, GROUP BY without generate calculated table

Hi,

I need you guys help with this topic.

First, my datasource is the dataset that was provided with direct query.

I successfully find the max value group by datekey & skuid. It went well if I created new calculated table with this DAX.

MaxPlanned = SUMMARIZE('Fact Product Details Shift View','Fact Product Details Shift View'[DateKey],'Fact Product Details Shift View'[skuId],"Planned",MAX('Fact Product Details Shift View'[Planned]))

Earkkaperk_0-1717128973880.png

The highlighted column is the right one.

But when I publish to Service, it is failed to refresh because there is a calculated table in it as below error.

Earkkaperk_1-1717129116011.png

 

My question is, Is there any ways to do the summarize or groupby without create a calculated table?

or is there anyway to avoid this refresh error?

As I know, I don't have right to modify anything in their dataset.

 

Thanks.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Earkkaperk , You can use measures if needed

 

MaxPlanned = Maxx( SUMMARIZE('Fact Product Details Shift View','Fact Product Details Shift View'[DateKey],'Fact Product Details Shift View'[skuId],"Planned",MAX('Fact Product Details Shift View'[Planned])), [Planned])

 

If needed you can use sumx

 

Also, calculated table should work after publish.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Earkkaperk , You can use measures if needed

 

MaxPlanned = Maxx( SUMMARIZE('Fact Product Details Shift View','Fact Product Details Shift View'[DateKey],'Fact Product Details Shift View'[skuId],"Planned",MAX('Fact Product Details Shift View'[Planned])), [Planned])

 

If needed you can use sumx

 

Also, calculated table should work after publish.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

Thank you. It solves my long long problem 🙂

for calculated table, I have tried published but it failed as error below for your information.

Data source error: {"error":{"code":"Premium_ASWL_Error","pbi.error":{"code":"Premium_ASWL_Error","parameters":{},"details":[{"code":"Premium_ASWL_Error_Details_Label","detail":{"type":1,"value":"We cannot refresh this dataset because the dataset contains calculated tables or calculated columns based on data from a Single Sign-on (SSO)-enabled Direct Query data source. Please configure the dataset to use an explicit connection with granular access control to access this data source and then try again."}}],"exceptionCulprit":1}}}
Cluster URI: WABI-NORTH-EUROPE-redirect.analysis.windows.net
Activity ID: dd0faf50-5235-485f-b220-a7924b1dd486
Request ID: 78662da1-ddbc-4e13-bd3f-1aa604fcd179
Time: 2024-05-31 03:17:20Z

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.