Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi, I am trying to calculate what percentage of my total approved items fall over a 5 day threshold in age.
The "Age" column below is a DATEDIF measure that shows the date difference between when an item was approved and todays date.
I would like a card that shows what percentage of the "Age" measure column falls above 5 days.
Formulas I have tried will not allow me to find the column due to it being a measure rather than a field.
Any help would be greatly appreciated!
Ben
Solved! Go to Solution.
You may create another measure for finding the count of 'Approved' as follows:
Count Approved = Calculate(Count(PurchaseRequisitionLines[Purchase Requision No_]),FILTER(PurchaseRequisitionLines,[Staus]="Approved")
Then, to find the percentage use the following
pct = DIVIDE(TIMO Sum od Count>4, Count Approved)
Hope this helps:
Hi @Padycosmos
Can you see where I might be going wrong?
True result should be around 70 results > 4.
Mine's returning 279!
Thanks,
Ben
Your measure apparently looks OK. If the data is not sensitive, could you please share the PBIX file?
Unfortunately although the page is fine, the dataset is sensitive i'm afraid
It's only age on the visual, true measure name and table location is as below:
You may, try this
Could you please share the formula used in that measure?
Hi Pady, apologies for the delay - I got there in the end with a Distict count.
What I now need to do is work out the Count > 4 days as a percentage of all approved items:
Would you know what's needed please?
Thanks again for all your help
You may create another measure for finding the count of 'Approved' as follows:
Count Approved = Calculate(Count(PurchaseRequisitionLines[Purchase Requision No_]),FILTER(PurchaseRequisitionLines,[Staus]="Approved")
Then, to find the percentage use the following
pct = DIVIDE(TIMO Sum od Count>4, Count Approved)
Worked Perfectly, thank you!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
83 | |
81 | |
51 | |
39 | |
35 |
User | Count |
---|---|
92 | |
75 | |
52 | |
49 | |
45 |