Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
gopichilla
Resolver III
Resolver III

How to find data in table.

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.

4 ACCEPTED SOLUTIONS

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.Smiley Happy

 

Regards

View solution in original post

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.Smiley Happy

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

View solution in original post

Hi @gopichilla,

 

A little confused! Could you post your expected result against the sample data above?Smiley LOL

 

Regards

View solution in original post

Thank u for helping I got a solution to my problem.

View solution in original post

9 REPLIES 9
Greg_Deckler
Super User
Super User

Well, you can filter that in your query, or create a slicer in your report and just slice out HR.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.Smiley Happy

 

Regards

2017-03-07_12h50_58.png

 

 

 

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.Smiley Happy

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.Smiley Happy

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?Smiley LOL

 

Regards

Thank u for helping I got a solution to my problem.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors