Forum Discussion

smpa01's avatar
smpa01
Community Champion
3 months ago
Solved

Data with current layout option for custom visual using matrix dataViewMapping

I have a custom visual that uses a matrix dataViewMapping (rows + values, no column grouping). When I upload the .pbiviz to the Power BI service and use Export data from the three-dots menu, the "Data with current layout" option is disabled.

"This option is only available for table and matrix visuals"

My visual renders a plain HTML table from the matrix dataView - it is a matrix visual. But the option is greyed out

 

{
  "dataRoles": [
    { "name": "rows",   "kind": "Grouping", "displayName": "Row Groups" },
    { "name": "values", "kind": "Measure",  "displayName": "Values" }
  ],
  "dataViewMappings": [
    {
      "matrix": {
        "rows":   { "for": { "in": "rows" }, "dataReductionAlgorithm": { "top": { "count": 1000 } } },
        "values": { "for": { "in": "values" } }
      }
    }
  ],
  "privileges": []
}

 

Question: Is "Data with current layout" only available for PBI's own native Table/Matrix visuals, and never for custom visuals - regardless of which dataViewMapping they declare? If so, is there a capability flag or API to enable it for custom visuals?

 

dm-p 
Thank you in advance.

  • Hi smpa01,

    The below Microsoft Learn documentation explains the available export options and their limitations, but it doesn’t explicitly call out support for custom visuals under the “Data with current layout” option. At the same time, the documentation clearly mentions that this export option is available only for Table and Matrix visuals, which refers to the native Power BI visuals.

    Because of this, even if a custom visual is built using a matrix dataViewMapping, the export behavior is still determined by the built‑in visual type. There isn’t any documented capability or API that allows custom visuals to enable Data with current layout. As a result, this should be considered a current product limitation, rather than a configuration or implementation issue.

    Official reference:
    Export Data from a Power BI Visualization - Power BI | Microsoft Learn

     

    If this capability is important for your use case, it would be best to submit Microsoft Fabric Ideas through the Fabric Ideas portal so the product team can consider it for future improvements.

     

     

    Thanks,

    Prashanth

1 Reply

  • v-prasare's avatar
    v-prasare
    Community Support

    Hi smpa01,

    The below Microsoft Learn documentation explains the available export options and their limitations, but it doesn’t explicitly call out support for custom visuals under the “Data with current layout” option. At the same time, the documentation clearly mentions that this export option is available only for Table and Matrix visuals, which refers to the native Power BI visuals.

    Because of this, even if a custom visual is built using a matrix dataViewMapping, the export behavior is still determined by the built‑in visual type. There isn’t any documented capability or API that allows custom visuals to enable Data with current layout. As a result, this should be considered a current product limitation, rather than a configuration or implementation issue.

    Official reference:
    Export Data from a Power BI Visualization - Power BI | Microsoft Learn

     

    If this capability is important for your use case, it would be best to submit Microsoft Fabric Ideas through the Fabric Ideas portal so the product team can consider it for future improvements.

     

     

    Thanks,

    Prashanth