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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
sammy02hk
Helper I
Helper I

Select Row Values by column Selection

Hi there, could you please give me some hints on the following scenario... Thank you very much.

 

Table info:
Promotion Table

Promotion Name and promtion realted Article are not fixed.

Unique Promotion Filter:

Rretrieve by the columns name of Promotion Table, except ArticleNo

 

Example

If I filter the promotion, how can i return a table with related artice No:

If I select Promotion Name A & F. Article No A(1,2,8,11) and F( 1 & 7) will be returned.

So that i can sum the sales by selected promotion.

sammy02hk_3-1673343594844.png

Thank you very much.

 

 

 

 

 

 

 

3 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@sammy02hk , you have to unpivot the first table and bring Promotion Name on rows and then you can join and filter

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

Riddhesh
Regular Visitor

Hi @sammy02hk,  

 

Did you intend to accomplish this task?

Solution.png

If so, utilizing a many-to-many relationship between the Article Sales and Promotion Table is an option. I am attaching the modeling view for your reference here.

 

Relationships.png

 

Warm regards,

Riddhesh

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

Hi @Riddhesh 

Thank you for your reply.

 

For the promotion table, is it impossible to stay in this form. 

sammy02hk_0-1673405775108.png

 

And need to transform to his format?

sammy02hk_1-1673405841695.png

 

Since @the Database, Article No and Promtion No are in great amounts, I try to reduce the database size.

 

Thank you.

 

 

View solution in original post

7 REPLIES 7
Riddhesh
Regular Visitor

Hi @sammy02hk,  

 

Did you intend to accomplish this task?

Solution.png

If so, utilizing a many-to-many relationship between the Article Sales and Promotion Table is an option. I am attaching the modeling view for your reference here.

 

Relationships.png

 

Warm regards,

Riddhesh

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

Hi @Riddhesh 

Thank you for your reply.

 

For the promotion table, is it impossible to stay in this form. 

sammy02hk_0-1673405775108.png

 

And need to transform to his format?

sammy02hk_1-1673405841695.png

 

Since @the Database, Article No and Promtion No are in great amounts, I try to reduce the database size.

 

Thank you.

 

 

Hello @sammy02hk,

 

Yes, you need to transform your promotion table. It's recommended to organize your data model by separating it into fact tables and dimension tables. The amount of data should not be an issue as long as the database is properly designed. A database is capable of managing a large volume of data, including millions of rows.

 

Additionally, a well-structured data model is crucial for optimal performance in Power BI.

 

Thank you

Thank you for you help.

sammy02hk
Helper I
Helper I

@amitchandak  Hi Amit. Thank you for your solution.
As the amount of Promotion table is quite a lot. Are there any alternative way, so that I can reduce the data size. 

Thank you.

amitchandak
Super User
Super User

@sammy02hk , you have to unpivot the first table and bring Promotion Name on rows and then you can join and filter

 

Unpivot Data(Power Query): https://youtu.be/2HjkBtxSM0g

 

https://radacad.com/pivot-and-unpivot-with-power-bi

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello Amit,

Thank you for your reply. Let me study this function.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.