Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hi folks,
I am having a seemingly trival problem. I have the following very simple star schema:
There are a 1-* relationship between the [Product] columns from the dimension tables to the fact table.
Now I would like to create a measure that counts the rows in the SalesStatistics table but ignores certain visual and slicer filters:
Obviously,
Orderlines =
CALCULATE(
COUNTROWS(SalesStatistics),
ALL(SalesStatistics[SalesDate],suppliers[Supplier])
)
does not work because "All column arguments of the ALL/ALLNOBLANKROW/ALLSELECTED/REMOVEFILTERS function must be from the same table."
What am I missing here? The columns should all be in the expanded table of SalesStatistics so why is this not trivial?
Kind regards, aabtra
You have to remove the filters from different tables in separate steps. try
Orderlines =
CALCULATE (
COUNTROWS ( SalesStatistics ),
REMOVEFILTERS ( SalesStatistics[SalesDate] ),
REMOVEFILTERS ( suppliers[Supplier] )
)
Did you try that? I am getting the exact same error.
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |