Forum Discussion
% Grand Total using barcode scanner
- 3 years ago
I think I have solved my issue. In the DAX I've written I am filtering by all selected customers and all products. When I modified my DAX to be the following it looks like the calculations are working with the scanner.
% Grand Total of Volume = DIVIDE(SUM(SUB_SETTLED_SALES[VV998_Q_PHYSICAL_CASES]) ,(CALCULATE(SUM(SUB_SETTLED_SALES[VV998_Q_PHYSICAL_CASES]), ALL()) ))Now I just have to figure out why my RANKX code isn't working with the scanner. 🙂
Hi Kmptrgeek ,
When you scanned, the visuals will be filtered by the product barcode you scanned.
What is the % Grand Total calculated and does it vary depending on the item scanned? Or it is a fixed value?
You can try to use some filter functions like REMOVEFILTERS() to remove the Barcode's filter.
If that does not work, please provide me with more details about your table and the relationships between your tables or share me with your pbix file after removing sensitive data.
Here are some Documnents, please check if these could help you a little:
Filter functions (DAX) - DAX | Microsoft Docs
REMOVEFILTERS function (DAX) - DAX | Microsoft Docs
Refer to:
How to provide sample data in the Power BI Forum
How to Get Your Question Answered Quickly
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The REMOVEFILTERS command will not work in my case because I'm am accessing the tables via Direct Connection. I understand how the barcode scanning functionality works as far as filtering the visuals, I just don't understand how to write the DAX to get it to apply my calculation to the entire dataset instead of just what was scanned. This DAX works when I filter to a specific product: