Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 | |
11 | |
6 | |
6 | |
5 |
User | Count |
---|---|
29 | |
17 | |
11 | |
7 | |
5 |