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 work for a bookstore will show how much of the turnover is sold in hard copy format ('Papir' in Danish).
I have made the measure below. The total amount is correct (PFD not included), but in the table I can also see rows including PDF even though PDF is not counted in the total.
PDF is only displayed in the table in cases where the same item number is sold in both PDF and hardcopy on the same order number.
Can anyone answer how I get PDF off the table?
Thank you
Turnover PAPIR =
CALCULATE(SUM('AX_CUSTINVOICETRANS'[LINEAMOUNTMST]);'AX_CUSTINVOICETRANS'[DS_PUBFORM]="papir")
Solved! Go to Solution.
@LangeJan try this
Turnover PAPIR =
CALCULATE (
SUM ( 'AX_CUSTINVOICETRANS'[LINEAMOUNTMST] ),
FILTER (
VALUES ( 'AX_CUSTINVOICETRANS'[DS_PUBFORM] ),
'AX_CUSTINVOICETRANS'[DS_PUBFORM] = "papir"
)
)
@LangeJan try this
Turnover PAPIR =
CALCULATE (
SUM ( 'AX_CUSTINVOICETRANS'[LINEAMOUNTMST] ),
FILTER (
VALUES ( 'AX_CUSTINVOICETRANS'[DS_PUBFORM] ),
'AX_CUSTINVOICETRANS'[DS_PUBFORM] = "papir"
)
)
Hi,
I think the most straightforward solution is to filter DS_DUBFORM on a visual level so either just place a filter here:
Or include a slicer selection on your report and use a simple dax like:
Revenue = SUM('AX_CUSTINVOICETRANS'[LINEAMOUNTMST])
If there isn't any specific reason to hard-code your product category selection I would stick to a slicer selection or a filter.
E.g. Slicer (in your example place 'AX_CUSTINVOICETRANS'[DS_PUBFORM] in the slicer)
I hope this helps and if it does consider accepting this as a solution and giving the post a thumbs up!
Proud to be a Super User!