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.
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-
Solved! Go to 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.
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!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |