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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

How to add an ad-hoc DATATABLE to a Power BI report (which is connected to a cube)?

I am using Power BI Desktop for Reporting Services Jan 2022.

The Data Source is an Analysis Services database.

The tabular model is used by dozens of reports.

In one report, I would like to create a new table to drive a slicer with some specific values.

Does anyone know how to do this?

 

I have tried creating a DAX measure DAX using the DATATABLE function to create this table, but that table cannot be used in a slicer.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

When you use a live connection to an Analysis Services database, new tables cannot be created on the desktop. Please consider going to SSAS to create a new table.

 

Best Regards,
Community Support Team Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,

 

When you use a live connection to an Analysis Services database, new tables cannot be created on the desktop. Please consider going to SSAS to create a new table.

 

Best Regards,
Community Support Team Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems with it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Anonymous
Not applicable

That's a shame. This will be a report-specific table, so does not belong in the cube, only this one report.

 

You can create measures in specific reports, so I don't see why you shouldn't be able to create tables in specific reports as well.

Anonymous
Not applicable

Hi @Anonymous ,

 

This is the limitation of the connection mode.

You can create report level measures in the Power BI Desktop, but all other query and modeling features are disabled when exploring live data.

 

The preview function can now be turned on from the desktop and the live connection can be switched to direct query mode. This allows you to create new fields or tables in mixed mode. Maybe this feature will be turned on in the report server as well, which will solve this problem.

Using DirectQuery for datasets and Azure Analysis Services (preview) - Power BI | Microsoft Docs

 

Best Regards,
Gao

Community Support Team

amitchandak
Super User
Super User

@Anonymous , If that is live connection, I doubt you can create a table.

 

A table can not take slicer value, so you can not have a table that gets filtered with slicer

 

You can have temporary table in measure 

 

example

 

min Version_Id =
var _tab = union(all('Table'[Version_Id1]),all('Table'[Version_Id2]),all('Table'[Version_Id3]),all('Table'[Version_Id4]),all('Table'[Version_Id5]))
Return
minx(_tab,[Version_Id1])

 

 

 

measure =
var _tab = summarize('Table'[Bill No], "_Version_Id",firstnonbank('Table'[Submitted Version_Id]),"_qty",sum('Table'[Qty])
)
return
divide(sumx(_tab,if(not(isblank[_Version_Id])),[_qty],0),sumx(_tab,[_qty]))

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors