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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Sathvik123
Helper V
Helper V

How to get data from a perticular table in power bi

Hello All,

I have a report getting data from 2 tables .Sales north and sales south.

 

1)select date, country,sales from north table

2)select date, country,sales from southtable

 

Both have same columns so I appended them as single query.

 

Now my requirement is I need to show a user input value to my user which have 2 values North and South.

So when my user selects north  show north table sales data and user selects South it has to South table sales.

 

Could any one please help how to do this

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @Sathvik123 ,

Before append sales south and sales north table, add a custom column "Type" (="South" , ="North") to each of these two tables as shown in the figure below.

yingyinr_0-1649154414900.png

After adding, then append these two tables.

yingyinr_1-1649154432659.png

Then create some measures to get the info base on your requirement... Please find the details in the attachment.

yingyinr_2-1649154601078.png

If the above one can't help you get the desired result, provide some sample data in sales north and sales south table(exclude sensitive data) and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

Hi @Sathvik123 ,

Before append sales south and sales north table, add a custom column "Type" (="South" , ="North") to each of these two tables as shown in the figure below.

yingyinr_0-1649154414900.png

After adding, then append these two tables.

yingyinr_1-1649154432659.png

Then create some measures to get the info base on your requirement... Please find the details in the attachment.

yingyinr_2-1649154601078.png

If the above one can't help you get the desired result, provide some sample data in sales north and sales south table(exclude sensitive data) and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
lbendlin
Super User
Super User

1)select date, country,sales,"North" region from north table

2)select date, country,sales, "South" region from south table

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.