Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have created a table in sql server and loaded into powerbi. the table is like
| eno | ename | deptno | salary |
| 1 | Raja | 1 | 5000 |
| 2 | kirshore | 2 | 6000 |
| 3 | Naveen | 3 | 5500 |
| 4 | Santosh | 2 | 8000 |
| 5 | Praveen | 1 | 10000 |
I want output like below using calculatetable measure(required data having deptno=1).
| eno | ename | deptno | salary |
| 1 | Raja | 1 | 5000 |
| 5 | Praveen | 1 | 10000 |
the below measure is throwing error
Solved! Go to Solution.
Hi @SivaReddy,
Create calculated table as:
CALCULATETABLE =
CALCULATETABLE(
'Table','Table'[deptno]=1
)
Here is the output:
The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
Hi @SivaReddy,
Create calculated table as:
CALCULATETABLE =
CALCULATETABLE(
'Table','Table'[deptno]=1
)
Here is the output:
The pbix is attached.
If you still have some question, please don't hesitate to let me known.
Best Regards,
Link
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
thanks
issue is fixed & Thanks
why not just add a filter and set deptno =1?
Proud to be a Super User!
You cannot output a table as a measure. You can use CALCULATETABLE as part of your measure calculation steps but you must return a single (scalar) value at the end.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.