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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
danextian
Super User
Super User

Create caclulated table in power pivot

Hello,

 

I am not sure which forum to post this question as I couldnt find the one for Power Pivot in Excel. Power BI Desktop is very familiar with me but I am still exploring Power Pivot. Basically, what I am trying to do is create a calculated table in Power Pivot but I can't find this option. I don't even know if it is possible.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
6 REPLIES 6
LivioLanzo
Solution Sage
Solution Sage

@danextian

 

it is possible to create it using Excel as well. 

You need to go to Data > Existing Connections > Tables > then select one table from the data model ( a small one and import it into excel )

 

Afterwards, right click this table and choose 

 

2018-10-15_8-43-48.jpg

Write your query and then import this table into the Data Model

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

I have exactly this use case. I created a dummy table and imported it into the model.

 

Problem: Excel does not allow me to import Model data as Table. Table option is grayed out. Only allows Pivots. Do you know how to overcome this?

NoSpaces_1-1669716053356.pngNoSpaces_2-1669716058848.png

 

 

I found out why it did not allow to Import as table, but it still does not work. 🤷‍♀️

 

Following your guide:

  1. Create table with >1 columns (1 column just did not work!)
    NoSpaces_3-1669716351024.png
  2. Importing a table supporting DAX actually worked without explicitly adding the dummy table to power pivot data model:
    Existing Connections > (This Workbook) > Select the dummy table

    Then it can be imported as a Table

    NoSpaces_6-1669716596128.png
  3. Then you can right-click on the newly created table and edit DAX
    NoSpaces_9-1669717400361.png
  4. But now I need to use DAX function VALUES, and it does not work
    NoSpaces_7-1669716949918.png
    The error is: Syntax for 'VALUES' is incorrect.

    NoSpaces_8-1669717180695.png

I'm pretty sure the DAX is correct, because column BusinessCatalogs[Business Role ID] does exist.

Just to close the loop on this, You need to add the expression "EVALUATE" at the beginning of the Values statement.

Hi @LivioLanzo,

 

Thanks for the response. What I am trying to do is create a caclulated table from an already existing table. 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

IF you want to use DAX then you need to import the original table into the Data Model and follow the process I described above

 

 

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

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!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.