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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Kasunpathirana
Resolver I
Resolver I

I HAVE CREATED A TABLE USING DAX BUT UNABLE TO FIND IT WHEN USE EDIT QUERIES

I have created a table using DAX but when try to use EDIT QUERIES I'm not seen this table under queries section. I need to use this table to create a join and create another table.

 

Is there a workaround or is there anything which i missed?

1 ACCEPTED SOLUTION

Hi @Kasunpathirana,

 

According to your description above, you should be able simply use the formula(DAX) below to create a new calculate column in the Total-Manual table without combining all the sales result in Query Editor in your scenario. Smiley Happy

Total Sales 2 = 
IF (
    ISBLANK ( 'Total-Manual'[Total Sales] ),
    CALCULATE ( SUM ( Quantity[Total Sales] ) ),
    'Total-Manual'[Total Sales]
)

Note: make sure you have created a relationship between the Quantity table and the Total-Manual table with Company column.

 

c1.PNGrelationship1.PNG

 

Regards

View solution in original post

7 REPLIES 7
Parihar1980
Helper II
Helper II

I have tried the above suggestions. My issue is I have a calculated column using DAX this calculation involves two tables. Then once i create this field then Require to Summarize into a table. Once I summarize using the DAX query the new summarized table is not able to use in the EDIT QUERIES.

 

How should I enable summarize table for EDIT QUERIES?

Hi @Kasunpathirana,

 

Could you post your table structures with some sample/mock data and your expected result, so that we can further assist on this issue? It's better to share a sample pbix file which can reproduce the issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. Smiley Happy

 

Regards

totalsales.png

summarize table.pngedit queries.pngexpected result.png

 

There is two Tables Price and Quantity is coming from SQL Tables and Total-Manual is csv file need to combine all the sales result. When create summary table then as shown in 3rd picture unable to see the summary table in the edit queries.

 

What will be the best method to acheive above expected result. Smiley Very Happy

Hi @Kasunpathirana,

 

According to your description above, you should be able simply use the formula(DAX) below to create a new calculate column in the Total-Manual table without combining all the sales result in Query Editor in your scenario. Smiley Happy

Total Sales 2 = 
IF (
    ISBLANK ( 'Total-Manual'[Total Sales] ),
    CALCULATE ( SUM ( Quantity[Total Sales] ) ),
    'Total-Manual'[Total Sales]
)

Note: make sure you have created a relationship between the Quantity table and the Total-Manual table with Company column.

 

c1.PNGrelationship1.PNG

 

Regards

Great it really works @v-ljerr-msft thanks for the quick support Smiley Very Happy

vanessafvg
Super User
Super User

@Kasunpathirana if you want the table in power query i think you need to create it in power query not dax.

 

however you can join this table in your relationships view, have you tried that?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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