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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors