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
ppgandhi11
Helper V
Helper V

how to find values of calculated table?

Hi,

 

I have created below measure (I tried with new column also but did not work).

 

TESTMEASURE =
var y = CALCULATETABLE(ALLSELECTED(Query1[Specialty]), FILTER(query2, Query2[PROVIDER_ID] = "123456"))
return COUNTROWS(y)

 

Basically, this works and returns the number of rows returned for calculated table. I expect different outcome (# returned).

 

I want to see what values are there in the table. How can I find the values of calcuated table?

 

Please help. Thanks!

 

Prashant-

1 ACCEPTED SOLUTION

You can go to Modelling -> New Table, and give:

Table = CALCULATETABLE(ALLSELECTED(Query1[Specialty]), FILTER(query2, Query2[PROVIDER_ID] = "123456"))

 

This will give u the output of that table which you used inside the measure. But, the Filter Context from the visual won't be available here. If you want to simulate the Fiter Context in your Chart/Table, you have to enhace the DAX Table function to include all required filters.

 

Once your testing is done, you can Delete this table.

View solution in original post

4 REPLIES 4
AkhilAshok
Solution Sage
Solution Sage

For troubleshooting best tool to use is DAX Studio. You can write you own DAX Queries and experiment.

 

Another option is to try Create Table option in Power BI and enter the Table function.

Thanks for your response. I am new to Power BI so don't know a whole lot.

 

So are you saying that in this approach i can see # of records in the table but cant see the values of each record? That seems very odd. This is a dynamically created table as i understand, so how create table would help? can you give me a pointer? I don't have DAX studio.

You can go to Modelling -> New Table, and give:

Table = CALCULATETABLE(ALLSELECTED(Query1[Specialty]), FILTER(query2, Query2[PROVIDER_ID] = "123456"))

 

This will give u the output of that table which you used inside the measure. But, the Filter Context from the visual won't be available here. If you want to simulate the Fiter Context in your Chart/Table, you have to enhace the DAX Table function to include all required filters.

 

Once your testing is done, you can Delete this table.

I found the solution using the joins, but marking this as accepted solution since it may help someone else. Thanks!

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.