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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Anonymous
Not applicable

How to create restricted key figure in PBI

Hi Experts,

I have 3 fields of data coming from my table. I need to calculate the target percentage and display the Tom's percetage in Target % A and Harry's in Target % B columns. The oranged coloured cells should be blank. Can someone please advise how to achieve this.

 

RKF.JPG

 

Thanks

MAHAD

1 ACCEPTED SOLUTION

Hi, @Anonymous 

Try measure as below and apply them to table visual:

M_Target Qty A = IF(SELECTEDVALUE('Table'[Sales Man])="Tom", MAX('Table'[Target Qty A]),BLANK())
Target %A = if(ISBLANK('Table'[M_Target Qty A]),BLANK(),MAX('Table'[Sold Qty])/[M_Target Qty A])
M_Target Qty B = IF(SELECTEDVALUE('Table'[Sales Man])="Harry", MAX('Table'[Target Qty B]),BLANK())
Target %B = if(ISBLANK('Table'[M_Target Qty B]),BLANK(),MAX('Table'[Sold Qty])/[M_Target Qty B])

veasonfmsft_0-1656403215403.png

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
BurgerToPro
Frequent Visitor

How about a simple if statement?
If Sales Man = "Tom" then Your function else Blank() -> for cells Target A
If SalesMan = "Harry" then Your function else Blank() -> for cells Target B

Anonymous
Not applicable

Thanks for your response.

 

Can you please let me know how to create the measure in PBI with these conditions. I'm new to Power BI.

 

Thanks

MAHAD

Hi, @Anonymous 

Try measure as below and apply them to table visual:

M_Target Qty A = IF(SELECTEDVALUE('Table'[Sales Man])="Tom", MAX('Table'[Target Qty A]),BLANK())
Target %A = if(ISBLANK('Table'[M_Target Qty A]),BLANK(),MAX('Table'[Sold Qty])/[M_Target Qty A])
M_Target Qty B = IF(SELECTEDVALUE('Table'[Sales Man])="Harry", MAX('Table'[Target Qty B]),BLANK())
Target %B = if(ISBLANK('Table'[M_Target Qty B]),BLANK(),MAX('Table'[Sold Qty])/[M_Target Qty B])

veasonfmsft_0-1656403215403.png

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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