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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
sh10
New Member

Excel Index Match to retrieve a data column based on selected value

Hello! I did a formula below in Excel to get a column of data based on the selected value in a Slicer.

For example, if a user select July in the slicer, it returns me the row of column values for July.

How can i perform this in Power BI?

 

INDEX('Cost Center AOP'!$G:$R,,MATCH($H$2,'Cost Center AOP'!$G$5:$R$5,0))

 

 

Cost Center AOP data

 

May   |    June   |      July   |     August    <---Column Name

$0            $1             $2              $3

$1            $2             $2              $2

$3            $3             $3              $3  

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

Hi sh10,

 

You can't do this directly in power bi because all the filter is based on rows, not columns. As a workaround, you can click-> query editor-> transform-> unpivot columns as below:

Capture.PNG 

 

After applied&closed, create a slicer visual based on attribute column like below:

2.PNG 

 

Regards,

Jimmy Tao

View solution in original post

1 REPLY 1
v-yuta-msft
Community Support
Community Support

Hi sh10,

 

You can't do this directly in power bi because all the filter is based on rows, not columns. As a workaround, you can click-> query editor-> transform-> unpivot columns as below:

Capture.PNG 

 

After applied&closed, create a slicer visual based on attribute column like below:

2.PNG 

 

Regards,

Jimmy Tao

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.