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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
PaisleyPrince
Helper II
Helper II

Two Measures required on same column based on different values

Hi,

I'm trying to create two measures based on slicer selections, which use the same column (location) as per below. The output would

be a matrix showing Description and total stock quantity for the first and second locations chosen (one measure for each). I have tried using SELECTEDVALUE as a filter for the measures but this throws an error. Any advice would be greatly appreciated.

thanks

Scott

PowerBI update.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @PaisleyPrince ,

 

As tamerj1's said, the matrix can meet your needs.

vxiaocliumsft_0-1727415465494.png

vxiaocliumsft_1-1727415532864.png

 

Best Regards,

Wearsky

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @PaisleyPrince ,

 

As tamerj1's said, the matrix can meet your needs.

vxiaocliumsft_0-1727415465494.png

vxiaocliumsft_1-1727415532864.png

 

Best Regards,

Wearsky

Anonymous
Not applicable

Hi @PaisleyPrince ,

 

Have a good day. Could you describe the desired output and share virtual sample data?

 

Best Regards,

Wearsky

Hi,

I've attached sample input and output. @tamerj1 is correct that i'm currently using SELECTEDVALUE.

Screenshot 2024-09-16 210128.png

@PaisleyPrince 

Why don't you just use a matrix visual? Description in the rows, Location in the columns and Stock quantity in the values. I hope you're not over simplifying the problem. 

PaisleyPrince
Helper II
Helper II

Hi, thanks for the advice - would you be able to elaborate ?

@PaisleyPrince 

My guess is that you're using SELECTEDVALUE to retrieve the slicer selection of a parameter table. If this the case then you need to use MAX or MIN to retrieve that value instead of using SELECTEDVALUE which if used you'll receive an error. 
If I guessed wrong then you're the one who needs to elaborate not me 😅

tamerj1
Super User
Super User

Hi @PaisleyPrince 

use MAX

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.