Forum Discussion
How to find data in table.
- 9 years ago
Hi gopichilla,
Could you post some sample data of your Department column with your expected result? So that we can help to write the query for you.:smileyhappy:
Regards
- 9 years ago
Hi gopichilla,
In this scenario, you can use ADDCOLUMNS or SELECTCOLUMNS function(DAX) to create a new calculate table with the Department data you want. The formula below is for your reference.:smileyhappy:
NewTable = ADDCOLUMNS ( FILTER ( Table1, Table1[Department] = "Web Development" ), "HR Department", Table1[Department] )Note: Replace "Table1" with your real table name in the formula above.
Regards
- 9 years ago
Hi gopichilla,
A little confused! Could you post your expected result against the sample data above?:smileylol:
Regards
- 9 years ago
Thank u for helping I got a solution to my problem.
In this scenario, you can use ADDCOLUMNS or SELECTCOLUMNS function(DAX) to create a new calculate table with the Department data you want. The formula below is for your reference.
NewTable =
ADDCOLUMNS (
FILTER ( Table1, Table1[Department] = "Web Development" ),
"HR Department", Table1[Department]
)Note: Replace "Table1" with your real table name in the formula above.
In this above function and query created a new table, But I want in the same table create a new column based on the above condition.
Thanks,
Gopi
Hi gopichilla,
A little confused! Could you post your expected result against the sample data above?:smileylol:
Regards
- gopichilla9 years ago
Resolver III
Thank u for helping I got a solution to my problem.