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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Drillthrough detail row expression error

We have setup Default Detail Row Expression in Tabular Editor for a PBI report.
When the users use Analyze in Excel functionality for the report the "See details" option in the Pivot table has been working well. Now users with an Excel version of 2403 or later get an error message when going into "See details".

"RETURN clause cannot be used with the DRILLTHROUGH statement when a DetailRow expression is already defined on the measure"

 

Rolling back the Excel version for the users is not really an option.
Has anyone found a solution to this? 

 

All help much appreciated!

Best regards,
Fredrik 

1 ACCEPTED SOLUTION
hackcrr
Super User
Super User

Hi, @Anonymous 

If possible, consider removing the DetailRow expression from the metric, but this may not be ideal if you need the detail row for other purposes.
Depending on the complexity of drilling down into the details, consider using an alternative reporting method, such as creating a separate detail report in Power BI and linking to that report through Power BI's drill-down capabilities.
The following is a hypothetical example of adjusting a DetailRow expression to ensure that it does not conflict with a DRILLTHROUGH statement. Assume you have a DetailRow expression as shown below:

EVALUATE
SELECTCOLUMNS(
    FILTER(
        'Sales',
        'Sales'[ProductID] = SELECTEDVALUE('Product'[ProductID])
    ),
    "OrderID", 'Sales'[OrderID],
    "Quantity", 'Sales'[Quantity],
    "Total", 'Sales'[Total]
)

Keep Excel and Power BI up to date. Considering that it affects common features, Microsoft may release a fix for this issue in a future update.

 

Best Regards,

hackcrr

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

1 REPLY 1
hackcrr
Super User
Super User

Hi, @Anonymous 

If possible, consider removing the DetailRow expression from the metric, but this may not be ideal if you need the detail row for other purposes.
Depending on the complexity of drilling down into the details, consider using an alternative reporting method, such as creating a separate detail report in Power BI and linking to that report through Power BI's drill-down capabilities.
The following is a hypothetical example of adjusting a DetailRow expression to ensure that it does not conflict with a DRILLTHROUGH statement. Assume you have a DetailRow expression as shown below:

EVALUATE
SELECTCOLUMNS(
    FILTER(
        'Sales',
        'Sales'[ProductID] = SELECTEDVALUE('Product'[ProductID])
    ),
    "OrderID", 'Sales'[OrderID],
    "Quantity", 'Sales'[Quantity],
    "Total", 'Sales'[Total]
)

Keep Excel and Power BI up to date. Considering that it affects common features, Microsoft may release a fix for this issue in a future update.

 

Best Regards,

hackcrr

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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