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.
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!
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
12 | |
9 | |
5 |