Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi Everyone,
Good day!
I would like to ask if there's a way to duplicate row values based on selected value.
Example:
I have table below with fruit value apple.
| ID | Fruit | FY |
| 1 | apple | SY2 |
I have a second table below that has empty value.
| ID | Fruit | FY |
What i want to happen is when apple is selected, it will automatically creates data in the second table as duplicate value to first table.
Expected result something below:
| ID | Fruit | FY |
| 1 | apple | SY2 |
| 1 | apple | SY1 |
| 1 | apple | SY3 |
Also, if nothing is selected from main table it will automatically clear the data from second table. Is this possible in POWER BI?
Thanks in advance.
Hi @devgian ,
In Power BI, you can achieve the behavior you described using DAX measures and slicers. You can create a slicer to select the fruit value from the first table, and based on the selected fruit, you can generate rows in the second table using DAX measures. However, Power BI does not have the ability to directly modify or insert rows into tables in the same way a database can. Instead, you can create calculated tables or generate data within visuals.
Here's a general outline of how you can achieve the behavior you described:
Create a Slicer:
Create a Measure to Filter Data:
Generate Rows in a Table:
This measure generates rows in the "Second Table" based on the selected fruit. If nothing is selected (blank), it returns a blank result.
Visualize the Second Table:
Clear Data When Nothing is Selected:
With this setup, when a user selects a fruit in the slicer, the "Second Table" will display the corresponding rows. If nothing is selected, the "Second Table" will be blank.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 129 | |
| 59 | |
| 48 | |
| 47 |