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
Hello,
i need a measure that calculated the distinct count of Items, but only for the months January and December. So it should just distinct count the items where the Measure i already wrote is not blank
The measure to sum the quantity of Jan&Dec
Solved! Go to Solution.
Distinct count Jan Dec =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Column] ),
FILTER ( VALUES ( 'Table'[Column] ), NOT ISBLANK ( [My Measure] ) )
)
If column is enough to correctly identify the row and produce the value for the measure then this should work. If additional columns are needed in the filter context then you can replace VALUES with a SUMMARIZE statement including all necessary rows.
Try
Distinct count Jan Dec =
IF (
SELECTEDVALUE ( v_DimCountrySoldTo[CountryEN] ) = "Austria",
CALCULATE (
DISTINCTCOUNT ( 'Table'[Column] ),
v_DimDate[MonthNumber] IN { 1, 2, 12 }
),
CALCULATE (
DISTINCTCOUNT ( 'Table'[Column] ),
v_DimDate[MonthNumber] IN { 1, 12 }
)
)
this doesn´t work because the item Table is not connected to the Date table, i need to filter it by the measure but i don´t know how
Distinct count Jan Dec =
CALCULATE (
DISTINCTCOUNT ( 'Table'[Column] ),
FILTER ( VALUES ( 'Table'[Column] ), NOT ISBLANK ( [My Measure] ) )
)
If column is enough to correctly identify the row and produce the value for the measure then this should work. If additional columns are needed in the filter context then you can replace VALUES with a SUMMARIZE statement including all necessary rows.
User | Count |
---|---|
12 | |
12 | |
8 | |
8 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
11 | |
7 |