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.
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.
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 |
---|---|
97 | |
94 | |
74 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |