Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I guess the Client's table is your dimension table and it is a one-to-many relationship with your fact table. If yes,
please try to put the fact table into Calculate parameter first.
Hello,
In fact i have a date dimension table + a client table.
if the client table is your fact table.
please try amitchandak's method.
@Anonymous , You need to do like
CALCULATE(COUNT('Client'[Client Name]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-1,Quarter),
FILTER('Client', 'Client'[Entity] = SELECTEDVALUE('Client'[Entity])
))
or
CALCULATE(COUNT('Client'[Client Name]),DATESINPERIOD('Date'[Date],MAX('Date'[Date]),-1,Quarter),
FILTER('Client', 'Client'[Entity] in allselected('Client'[Entity])
))
but why you need this filter when the column name is the same, this will filter the table anyway. This is needed only when column is coming from independent table or from some other column
In fact using your previous query :
Active Total Subs = var _max = maxx(ALLSELECTED('Date'),
'Date'[Date]) return CALCULATE(COUNT('Client'[Name]), filter('Client', 'Client'[Date Begin] <= _max && 'Client'[Date End] >=_max))
I would replace -> maxx(ALLSELECTED('Date'), 'Date'[Date])
By -> LASTDATE(PREVIOUSQUARTER('Date'[Date])) and do the same for the 4 other quarter rollup.
Regards.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
19 |