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.
Hello everyone,
I got these 3 columns, I need your help in calculating the product´s usefull life until today (every actual day), and tracking with a mueasure of how many products are over 80% of usefull life, and under 50%
I calculated this columns, but it seems that doesn´t work with visualizations, thats why I need measures.
Actual_Date = TODAY ()
Usefull_life_today =Table1 [expiration date] - Table1 [Actual_Date]
Total Usefull life = Table1 [ production life] - Table1 [expiration date]
% usefull life =Table1 [ Usefull_life_today]/ Table1 [Total Usefull life]
The result may be
over 80% 50 items
under 50% 34 items
I accept any suggestions
Thanks
Solved! Go to Solution.
Hi @Anonymous,
To get the no of values below 50% and above 80%, you can use the following 2 measures
Less than 50% Usefullife = IF(ISBLANK(CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]<0.5))=TRUE(),0,CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]<0.5))
Greater than 80% Usefullife = IF(ISBLANK(CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]>0.8)) =TRUE() ,0,CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]>0.8))
The Below screenshot shows the Available life, Total Life, Useful life % and the measure values
Hope this helps!!!
Hi @Anonymous,
To get the no of values below 50% and above 80%, you can use the following 2 measures
Less than 50% Usefullife = IF(ISBLANK(CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]<0.5))=TRUE(),0,CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]<0.5))
Greater than 80% Usefullife = IF(ISBLANK(CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]>0.8)) =TRUE() ,0,CALCULATE(COUNT('Item expiry'[% usefull life]),'Item expiry'[% usefull life]>0.8))
The Below screenshot shows the Available life, Total Life, Useful life % and the measure values
Hope this helps!!!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
97 | |
80 | |
69 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |