Hi Boardies,
So I've finally got the opportunity to mess around with DAX and some real-world data.
I have a FACT table.
DATE | SITE | PRODUCT | NET SALES
and a Dimension Table that only contains unique values (These two tables are not related)
PRODUCT
I also have the following Measure TotalNetSales:=SUM(FACT[NET SALES])
The PRODUCT dimension table is on a worksheet (it is in the Data Model) and I'm hoping I can use it as a filter for a measure.
I have tried this FilteredNetSales:=CALCULATE([TotalNetSales], FILTER(FACT, FACT[Summary] = PRODUCT[Summary]))
But this is wrong, I think because the FILTER is expecting one to evaluate the expression rather than a list???
My pivot has DATE and SITE as row headers.
I'm displaying total sales and want to also display filtered Sales so that I can create a percentage of Sales column.
Any help would be appreciated.
/Comfy
So I've finally got the opportunity to mess around with DAX and some real-world data.
I have a FACT table.
DATE | SITE | PRODUCT | NET SALES
and a Dimension Table that only contains unique values (These two tables are not related)
PRODUCT
I also have the following Measure TotalNetSales:=SUM(FACT[NET SALES])
The PRODUCT dimension table is on a worksheet (it is in the Data Model) and I'm hoping I can use it as a filter for a measure.
I have tried this FilteredNetSales:=CALCULATE([TotalNetSales], FILTER(FACT, FACT[Summary] = PRODUCT[Summary]))
But this is wrong, I think because the FILTER is expecting one to evaluate the expression rather than a list???
My pivot has DATE and SITE as row headers.
I'm displaying total sales and want to also display filtered Sales so that I can create a percentage of Sales column.
Any help would be appreciated.
/Comfy