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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.