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 August 31st. Request your voucher.
I'm sure there is a simple answer that I can't find during my searching.
I have a table "Orders" which is being filtered by slicers. I want to add a column called "Total" which repeats the total order value.
Eg orders table:
Product, Qty, Value, Total
Pen, 5, $10, $14
Pencil, 10, $1, $14
Eraser, 3, $3, $14
Notice how total is the total value of all orders, but repeated. I want the Total measure to be affected by slicers applied to Orders, but unaffected by the row filter in the table. I also want the Total measure to be unaffected if I click a row of the table.
So far I have this:
Hi!
Let me know if I misunderstood, but could ALLSELECTED() be something that helps?
Total Value =
CALCULATE(
sum('Orders'[Value]),
ALLSELECTED('Orders'))
Without slicer
With slicer
Thanks, but if I click on a row then ALLSELECTED doesn't work.