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
romovaro
Post Partisan
Post Partisan

Custom measure - Conditional formating for quarterly Target

HI

 

I need to create quarterly goals based on how many months a project has been on Hold. I created a custom field called 

BL in Months = DATEDIFF('Slippage Report'[Signed], TODAY(), MONTH)
 
En another field:
BL Ageing  =
IF('Slippage Report'[BL in Months] <= 12, "Less than 12 Months",
IF('Slippage Report'[BL in Months] <= 24, "Between 12-24 Months",
"More than 24 Months"
))
 
Where I can display the totals in %
 
Now I need to add the quarterly targets. I have 2 products and a quarterly Target for every quarter and every "BL ageing type"
Any idea how to create the quarterly forecast using the BL in Months and Bl Ageing type
 
BL AGEINGProductQtr TargetQuarter
Less than 12 Month38,00%Q1
Between 12 - 24 Months52,00%Q1
More than 24 Months10,00%Q1
Less than 12 Month40,00%Q2
Between 12 - 24 Months52,00%Q2
More than 24 Months8,00%Q2
Less than 12 Month40,00%Q3
Between 12 - 24 Months54,00%Q3
More than 24 Months6,00%Q3
Less than 12 Month45,00%Q4
Between 12 - 24 Months50,00%Q4
More than 24 Months5,00%Q4
Less than 12 MonthB70,00%Q1
Between 12 - 24 MonthsB20,00%Q1
More than 24 MonthsB10,00%Q1
Less than 12 MonthB75,00%Q2
Between 12 - 24 MonthsB15,00%Q2
More than 24 MonthsB10,00%Q2
Less than 12 MonthB80,00%Q3
Between 12 - 24 MonthsB15,00%Q3
More than 24 MonthsB5,00%Q3
Less than 12 MonthB80,00%Q4
Between 12 - 24 MonthsB10,00%Q4
More than 24 MonthsB5,00%Q4

 

Thanks

 

 

Conditional Formatting Using Custom Measure

5 REPLIES 5
amitchandak
Super User
Super User

@romovaro , your heading vs your description is creating confusion.

can you share the expected output?

 

 

refer if needed

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

 

Sorry for that amitchandak.

 

I guess my expected outcome is to be able to add the target in my graph or table.

I cannot see the "conditional formatting option" in my custom measures...but maybe my heading is confusing.

 

How to add the target (in %) to my data in power bi.

 

romovaro_0-1637963888012.png

 

Qtr target table below. For every quarter, there is a % of BL ageing (KPI). 

 

BL AGEINGProductQtr TargetQuarter
Less than 12 Month38,00%Q1
Between 12 - 24 Months52,00%Q1
More than 24 Months10,00%Q1
Less than 12 Month40,00%Q2
Between 12 - 24 Months52,00%Q2
More than 24 Months8,00%Q2
Less than 12 Month40,00%Q3
Between 12 - 24 Months54,00%Q3
More than 24 Months6,00%Q3
Less than 12 Month45,00%Q4
Between 12 - 24 Months50,00%Q4
More than 24 Months5,00%Q4
Less than 12 MonthB70,00%Q1
Between 12 - 24 MonthsB20,00%Q1
More than 24 MonthsB10,00%Q1
Less than 12 MonthB75,00%Q2
Between 12 - 24 MonthsB15,00%Q2
More than 24 MonthsB10,00%Q2
Less than 12 MonthB80,00%Q3
Between 12 - 24 MonthsB15,00%Q3
More than 24 MonthsB5,00%Q3
Less than 12 MonthB80,00%Q4
Between 12 - 24 MonthsB10,00%Q4
More than 24 MonthsB5,00%Q4

 

 

Thanks Amichandak

 

I used the "Countrows" formula to know the total amount of lines and then i present the % of the 

3 options x quarter.
Less than 12 Months", "Between 12-24 Months"& "More than 24 Months"
 
With this , I don't have the option of conditional Formatting display. I Guess a Formula is the only way?

 

romovaro_0-1637949066375.png

 

Hi,

I am still not clear with your expected result.  Could you kinldy show the result in a Table format.  Preferably in an Excel file with your formulas so that those formulas can be translated in the DAX language.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

 

The current BL Ageing x Quarter I get from our current report . Now Management wants to add Quarterly targets and compare vs current. Quarterly targets are not included in the system. They are fix numbers that need to be included in the report. (Manual Measure)

 

I created the custome fields

BL in Months = DATEDIFF('Slippage Report'[Signed], TODAY(), MONTH)

and

BL Ageing 2 =
IF('Slippage Report'[BL in Months] <= 12, "Less than 12 Months",
IF('Slippage Report'[BL in Months] <= 24, "Between 12-24 Months",
"More than 24 Months"
))

 

Now in need to create the target measures to compare with my current numbers:

 

My idea of representation would be table format: (maybe with color changinf if current is higher than target)

romovaro_0-1638038771550.png

 

OR maybe a more visual representaton using clustered column chart for the current and then a line for target...or column...

 

romovaro_1-1638039131600.png

 

But right now I guess the issue is to be able to represent current vs target.

 

Thanks

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.