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.
hey guys, tried to use other solutions here but won't work on my end. please let me know if I missed a step.
basically I have a table like below:
Vendor | Date | Sale |
1 | 1/1/2024 | 5000 |
2 | 5/2/2024 | 3000 |
3 | 9/1/2001 | 4000 |
4 | 7/7/2023 | 4212 |
5 | 12/12/2012 | 3500 |
1 | 1/1/2001 | 1232132 |
I want to have a table as a visual where it will show the total sales of vendor regardless of the date. Everything is in one table. Tried to use
Total Sales Per Vendor =
CALCULATE(
SUM(Sales[TotalSales]),
ALL(Sales[DueDate]), -- Remove any filter from Due Date
VALUES(Sales[Vendor]) -- Keep the vendor context
)
but when I changed the DueDate slicer the value also changed.
Solved! Go to Solution.
Hello @non23 ,
Considering you have a single table , you can use below dax to achieve the same.
It will ignore due_Date filter if any
I hope this is what you wanted. If not, kindly share all tables and expected output to check further.
Did I answer your query ? Mark this as solution if this helps, Appreciate Kudos always 🙂
Cheers
Hi @non23 ,
May I ask if you have gotten this issue resolved?
If it is solved, please mark the helpful reply or share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster .
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @non23 ,
Considering you have a single table , you can use below dax to achieve the same.
It will ignore due_Date filter if any
I hope this is what you wanted. If not, kindly share all tables and expected output to check further.
Did I answer your query ? Mark this as solution if this helps, Appreciate Kudos always 🙂
Cheers
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file.
expected result measure: =
CALCULATE (
SUM ( SalesFact[Sale] ),
ALL ( PeriodDimension[Date] )
)
hello @non23
try putting your 'Sales' table as ALL expression instead of 'DueDate' column.
Total Sales =
CALCULATE(
SUM('Table'[Sale]),
ALL('Table'),
VALUES('Table'[Vendor])
)
User | Count |
---|---|
14 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
28 | |
18 | |
13 | |
7 | |
5 |