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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mlm0926
Frequent Visitor

Convert Table from Visualisation into Actual table?

Hi all, 

 

I'm not too sure how to explain this properly. 

I have a standard bar chart that looks at aggregated values. 

mlm0926_0-1704674203641.png

 

I want to get the values based on "Show as table" information and create a table from it: 

mlm0926_1-1704674299301.png

 

Is there any way we I can fetch the values using dax? 

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

Hi @mlm0926 

The table shown when selecting "Show as table" contains the same values you would see in a Table visual containing the same fields as the column chart. Behind the scenes, the DAX query for "Show as table" is essentially identical to the DAX query for a Table visual (without totals).

 

The only difference in appearance with "Show as table" is that the axis field values are shown as a comma-separated list for each aggregated value.

 

So you should be able to see essentially the same values if you make a copy of the column chart and convert it to a Table, without having to write any additional DAX.

 

Does this work for you?

 

Regards


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

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

Hi again @mlm0926 

Out of interest, why do you want to add a table to the model based on the "Show as table" table?
Generally this is not necessary, but there are special cases where you might want to do this (e.g. Aggregations with a DirectQuery source).

 

To answer your question though, you could capture the DAX query from the visual and create a DAX calculated table using the relevant part of the code, omitting some of the unnecessary parts of the query.

For example, this kind of DAX expression would be the simplest way you could generate the table:

 

Summarized Table = // change to appropriate name
SUMMARIZECOLUMNS (
    'Date'[Year],
    'Date'[Month],
    "A12", [A12] // rename if desired
)

 

 

 


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

Hi @mlm0926 

The table shown when selecting "Show as table" contains the same values you would see in a Table visual containing the same fields as the column chart. Behind the scenes, the DAX query for "Show as table" is essentially identical to the DAX query for a Table visual (without totals).

 

The only difference in appearance with "Show as table" is that the axis field values are shown as a comma-separated list for each aggregated value.

 

So you should be able to see essentially the same values if you make a copy of the column chart and convert it to a Table, without having to write any additional DAX.

 

Does this work for you?

 

Regards


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

Hi, I think I didn't explain properly. Your solution is correct as well but I'm wondering how I can create a table in the data based on the table from "Show as table" instead of the table visualisation? 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.