The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I wrote up few DAX queries to get total stock quantity. First query is this :
The correct total should be 28,692,069.52. Appreciate if someone can help me on this.
Thanks !
Solved! Go to Solution.
Hi @Velvetine27 ,
Create a new measure by using ISINSCOPE() or ISFILTERED() function.
ISINSCOPE function (DAX) - DAX | Microsoft Learn
ISFILTERED function (DAX) - DAX | Microsoft Learn
Measure = IF(ISINSCOPE([Plant]),[TotalRunningQuantity],SUMX(ALLSELECTED(yourtable),[TotalRunningQuantity]))
Hi @Velvetine27 ,
Create a new measure by using ISINSCOPE() or ISFILTERED() function.
ISINSCOPE function (DAX) - DAX | Microsoft Learn
ISFILTERED function (DAX) - DAX | Microsoft Learn
Measure = IF(ISINSCOPE([Plant]),[TotalRunningQuantity],SUMX(ALLSELECTED(yourtable),[TotalRunningQuantity]))
Refer to this link. Maybe it will help you.
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |