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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
fredrikm
New Member

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
Solution Sage
Solution Sage

Hi, @fredrikm 

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
Solution Sage
Solution Sage

Hi, @fredrikm 

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors