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 am facing a problem getting data into the table. The condition is (In a table having a Department column and other columns, in department column contains a HR, Financial, Account, etc. But I want only HR department data)
Thanks,
Gopi.
Solved! Go to Solution.
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.
Regards
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.
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
Hi @gopichilla,
A little confused! Could you post your expected result against the sample data above?
Regards
Thank u for helping I got a solution to my problem.
Well, you can filter that in your query, or create a slicer in your report and just slice out HR.
Thank u for your answer.
It possible but we want any query by creating the new column.
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.
Regards
In this above image, i want only web Development.Place solve the issue.
Thanks,
Gopi.
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.
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
Thank you
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?
Regards
Thank u for helping I got a solution to my problem.
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 |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |