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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Duplicate the row based on Slicer selection

I have a requirement to show the same row based on slicer selection.


when index is selected as TTF then automatically i need to see 2 rows of same columns as per below screenshot.

 

LikhithaVG123_0-1688559590485.png

 


when index is selected as Matif then automatically i need to see 2 rows of same columns as per below screenshot.

LikhithaVG123_1-1688559590478.png

 


may i know how to acheive this ? Please any suggestion will help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

 

When each column of your data is the same, Power BI will automatically aggregate into one row in Visual, only one column will be displayed, you can add Index in Power Query, add a label to each row, and use the IF+Countx function to display 2 rows of the same data

 

Here are the steps you can follow:

1. In Power Query -- Add Column – Index Column – From 1.

vyangliumsft_0-1688716224270.png

2. Create measure.

Flag =
var _count=
CALCULATE(
    COUNT('Table'[Index]),
    ALLEXCEPT(
       'Table','Table'[Country],'Table'[Spend Category],'Table'[Index],'Table'[Last Value],'Table'[Assumption Scenario],'Table'[Correlation]))
return
IF(
    _count=2,1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1688716224271.png

4. Result:

vyangliumsft_2-1688716275733.png

 

 

Best Regards,

Liu Yang

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

1 REPLY 1
Anonymous
Not applicable

Hi  @Anonymous ,

 

When each column of your data is the same, Power BI will automatically aggregate into one row in Visual, only one column will be displayed, you can add Index in Power Query, add a label to each row, and use the IF+Countx function to display 2 rows of the same data

 

Here are the steps you can follow:

1. In Power Query -- Add Column – Index Column – From 1.

vyangliumsft_0-1688716224270.png

2. Create measure.

Flag =
var _count=
CALCULATE(
    COUNT('Table'[Index]),
    ALLEXCEPT(
       'Table','Table'[Country],'Table'[Spend Category],'Table'[Index],'Table'[Last Value],'Table'[Assumption Scenario],'Table'[Correlation]))
return
IF(
    _count=2,1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1688716224271.png

4. Result:

vyangliumsft_2-1688716275733.png

 

 

Best Regards,

Liu Yang

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

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.