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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Creating table rows based on selected value

Hello there, can you advise how I can create rows in Table A based on filtered values from two different tables - they are Numerator and Denominator.

 

I created the below (which doesnt work) that is supposed to put Filtered Numerator in row 1, then Denominator in row 2.

 

 

Table A = {SELECTEDVALUE('Numerator'[Dataitem]),SELECTEDVALUE('Denominator'[Dataitem])}

 

 

8 REPLIES 8
Anonymous
Not applicable

Hello @Anonymous 
Can you share your data in table format and your expected output?

Anonymous
Not applicable

Hi @Anonymous 

 

Please see attached workbook. I want to plot whatever is selected in Numerator and Denominator box in one chart

amitchandak
Super User
Super User

@Anonymous , You can not use selectedvalue or value from slicer in table creation.

 

refer various ways to create a table from two tables

https://www.sqlbi.com/articles/from-sql-to-dax-joining-tables/

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
Anonymous
Not applicable

Hi @amitchandak , Im looking at your article and it looks like they are combined as separate columns? I want mine to show as separate rows bu the same columns

@Anonymous , not very clear .

Union (All(table[column1]),All(table[column2]))

will create two rows for Column 1 and column 2

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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
Anonymous
Not applicable

Hi @amitchandak 

 

Please see attached workbook. I want to plot whatever is selected in Numerator and Denominator box in one chart

@Anonymous , attachment missing 

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
Anonymous
Not applicable

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors