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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
100tsky71
Frequent Visitor

summarizecolumns() and Excel DRE (Detail Row Expression)

good day!

 

Why summarizecolumns() works in DAX Studio and doesn't work in Excel with DRE (Detail Row Expression)?

 

thank you!

1 ACCEPTED SOLUTION

Thanks for the detail @100tsky71  🙂

If you are using SSAS Tabular, I believe "contextual SUMMARIZECOLUMNS" is not yet supported, since it was only fully enabled in products released from June 2024 (see here).

 

I believe it would work with Azure Analysis Services and Power BI, but for SSAS Tabular you would have to wait for a future update.

 

In the meantime, you should be able to write expression that achieves the same result using functions such as SUMMARIZE.

 

For example, instead of your current expression, you could write:

 

SUMMARIZE ( 'Calendar_01', 'Calendar_01'[Year] )

 

For some examples of more complex Detail Rows Expressions, see here:

https://www.sqlbi.com/articles/controlling-drillthrough-in-excel-pivottables-connected-to-power-bi-o...

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
100tsky71
Frequent Visitor

Owen, good day and thank you!

I'm using Excel with SSAS Tabular and a measure as simple like 

dre.png

but from Excel I've got a message

dre message.png

Thanks for the detail @100tsky71  🙂

If you are using SSAS Tabular, I believe "contextual SUMMARIZECOLUMNS" is not yet supported, since it was only fully enabled in products released from June 2024 (see here).

 

I believe it would work with Azure Analysis Services and Power BI, but for SSAS Tabular you would have to wait for a future update.

 

In the meantime, you should be able to write expression that achieves the same result using functions such as SUMMARIZE.

 

For example, instead of your current expression, you could write:

 

SUMMARIZE ( 'Calendar_01', 'Calendar_01'[Year] )

 

For some examples of more complex Detail Rows Expressions, see here:

https://www.sqlbi.com/articles/controlling-drillthrough-in-excel-pivottables-connected-to-power-bi-o...

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
OwenAuger
Super User
Super User

Hello @100tsky71 !

Could you clarify in what scenario this is not working for you, and provide a PBIX if possible for testing?

 

I tested connecting Excel to a Power BI model with a Detail Rows Expression defined using SUMMARIZECOLUMNS, and it appeared to work as expected when drilling through from a PivotTable.

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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