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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Dynamic denominator with calculated columns

Hi All,

 

New to Power BI and looking to rebuild a scorecard I have currently in Excel in PBI.  Not all of our vendors operate in all of our lines of business so I'm looking to create a dynamic formula to calculate the # of KPI each vendor should be held accountable for & this serves as the denominator for what we call the complaince score (# of KPI above goal / # of KPI in scope).

 

The % columns come straight from the data source where each row is a seperate line of data.  The goal column was created by using the "New Measure" button and entering a formula - for example the 3rd goal column has a formula of IF(ISNUMBER('CSOT - PBI dash (2)'[Num Carrier Misses divided by 1 - CSOT Shipment #]),IF('CSOT - PBI dash (2)'[Num Carrier Misses divided by 1 - CSOT Shipment #]<.05,1,0),"")

 

My initial trial was to use COUNT but that function only accepts a column reference so the formula errors out.  Any suggestions. 

 

jdm5680_0-1656450008780.png

 

2 REPLIES 2
pranit828
Community Champion
Community Champion

Hi @Anonymous 

Compliance = 
VAR TAC = IF(ISNUMBER('CSOT - PBI dash (2)'[Tac%]),IF('CSOT - PBI dash (2)'[TAC%]<.05,1,0),0)
VAR Drop= IF(ISNUMBER('CSOT - PBI dash (2)'[Drop%]),IF('CSOT - PBI dash (2)'[Drop%]<.05,1,0),0)
VAR CSOT= IF(ISNUMBER('CSOT - PBI dash (2)'[CSOT%]),IF('CSOT - PBI dash (2)'[CSOT%]<.05,1,0),0)
VAR IOT = IF(ISNUMBER('CSOT - PBI dash (2)'[IOT%]),IF('CSOT - PBI dash (2)'[IOT%]<.05,1,0),0)
Return TAC + Drop + CSOT + IOT

 

The above measure should help you with the baseline of what you need.

Hope it helps. 





PBI_SuperUser_Rank@1x.png


Hope it resolves your issue? 
Did I answer your question? Mark my post as a solution!

Appreciate your Kudos, Press the thumbs up button!!
Linkedin Profile
Seanan
Solution Supplier
Solution Supplier

Hi @Anonymous 

Would you be able to send an example of your dataset?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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