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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
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
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
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
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.