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.
Hello,
I'm sure this is a simple question to answer but I've looked everywhere and cannot understand what I'm doing wrong.
I work for an RV manufacturer. I have fact data that includes Invoice Numbers, Invoice Lines, and Item codes in a sales table. Item code relates to an Item dimension table which inludes an item group. Invoice Line 1 will always be the RV model number, and other lines on the invoice will be various packages, options, allowances, etc.
I'm working on a report that will show this line level information at a header level. I want only have one row for each unit, but I'll be able to see the allowances, options, etc. totals at that same level. Below is a screenshot of what I'm trying to accomplish. You'll notice Item Group ID is missing from this visual
Here you can see an example of what my data looks like:
I've created the following equation which to my knowledge sums the line amount after removing the line number filter from the page and then filtering for the specific sales allowance item ID = "SA":
Any idea what I'm doing wrong here? I'd appreciate any help you all can provide!
Solved! Go to Solution.
Hi Rena,
So that would be a solution and is one I hadn't thought of so thank you! I did manage to find a way to get it to work somehow with the following equation:
Hi @NickAdmin2 ,
As checked your screenshot, they are different ITEMID(BC and SA). Hence the table visual display two rows instead of one row.
If you want to display only one row, you can create a column as below with the same value to replace the field [ITEMGROUPID]. Please find the details in the attachment.
Items =
VAR _sales = 'FT_Sales'[SALESID]
VAR _tab =
CALCULATETABLE (
VALUES ( 'FT_Sales'[ITEMID] ),
FILTER ( 'FT_Sales', 'FT_Sales'[SALESID] = _sales )
)
RETURN
CONCATENATEX (
FILTER (
ALLSELECTED ( 'FT_Sales'[SALESID], 'FT_Sales'[ITEMID] ),
'FT_Sales'[SALESID] = _sales
),
'FT_Sales'[ITEMID],
","
)
Best Regards
Hi Rena,
So that would be a solution and is one I hadn't thought of so thank you! I did manage to find a way to get it to work somehow with the following equation: