March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Seeking Dax Formula to:
1. Count number of stock lines where "Stock on Hand" is Greater than "Maximum Stock". eg. using below capture four lines indicate the "On Hand" is greater than "Maximum Stock". Therefore result should be 4 when I create a visual
2. Count Qty where "Stock on Hand" is Greater than "Maximum Stock" value from the above. eg. Item Code 4008151 has Qty 12 "On Hand" therefore Count over "Maximum stock" result should be "7"
3. Value of Qty where "Stock on Hand" is Greater than the "Maximum Stock" using "Last cost" for the Item Code.
Hello @Anonymous
Maybe you should try the countx and sumx functions like:
1. No of Stock Lines = COUNTX(FILTER('Table', 'Table'[Stock on Hand]>'Table'[Maximum Stock]), 'Table'[Maximum Stock])
2. I cannot find the difference between the 1st and 2nd bullet
3. Sum of Cost = SUMX(FILTER('Table', 'Table'[Stock on Hand]>'Table'[Maximum Stock]), 'Table'[Last cost])
Hope I helped!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
25 | |
16 | |
15 | |
7 | |
7 |
User | Count |
---|---|
35 | |
31 | |
16 | |
16 | |
12 |