Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I really don't know how to form this question, I hope it's not that bad.
What I want is the following:
I have a slicer in which are phone numbers.
In the table is alawys the phone number and the cost, like this (recreated in excel):
Now I need the SUM of all rows in costs from the specific phone number (which would be the SELECTEDVALUE in the slicer).
It would be like this (excel again):
With input I mean the SELECTEDVALUE in the slicer.
In the end the SUM should be shown in a card, but all I really need is the DAX code.
Thanks in advance.
Solved! Go to Solution.
@Anonymous , is that not just a sum of the column. You can use the phone number in slicer it will filter?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
@Anonymous ,
Slicer will take Distinct values. When you place your numeric column on the visual it will be automatcially Summed most of the times.
You don't require DAX in this scenario, if you just want to show your Total cost when Phone selected on the slicer because the values will be summarized and shown on the vislaus with filters.
Rehards,
Manikumar
Proud to be a Super User!
@Anonymous ,
Slicer will take Distinct values. When you place your numeric column on the visual it will be automatcially Summed most of the times.
You don't require DAX in this scenario, if you just want to show your Total cost when Phone selected on the slicer because the values will be summarized and shown on the vislaus with filters.
Rehards,
Manikumar
Proud to be a Super User!
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
User | Count |
---|---|
77 | |
75 | |
46 | |
31 | |
28 |
User | Count |
---|---|
99 | |
93 | |
50 | |
49 | |
46 |