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.
Hello, i have made the table as the image. I select the day that i want to compare with the same month, last year at the same day. In the corrent month, last year is not working. Can someone help me? The formula was:
Solved! Go to Solution.
Hi @blackavipowerbi,
Perhaps you can try to use the following formulas if helps:
Qtd. de Atendimentos =
VAR curr =
MAX ( 'ATD'[MATRÍCULA] )
RETURN
CALCULATE (
COUNTA ( 'ATD'[MATRÍCULA] ),
FILTER (
ALLSELECTED ( 'ATD' ),
'ATD'[MATRÍCULA] <= curr
&& QUARTER ( 'ATD'[MATRÍCULA] ) = QUARTER ( curr )
&& YEAR ( 'ATD'[MATRÍCULA] )
= YEAR ( curr ) - 1
)
)
Regards,
Xiaoxin Sheng
Hi @blackavipowerbi,
Did the above suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements.
If these also don't help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi @blackavipowerbi,
Perhaps you can try to use the following formulas if helps:
Qtd. de Atendimentos =
VAR curr =
MAX ( 'ATD'[MATRÍCULA] )
RETURN
CALCULATE (
COUNTA ( 'ATD'[MATRÍCULA] ),
FILTER (
ALLSELECTED ( 'ATD' ),
'ATD'[MATRÍCULA] <= curr
&& QUARTER ( 'ATD'[MATRÍCULA] ) = QUARTER ( curr )
&& YEAR ( 'ATD'[MATRÍCULA] )
= YEAR ( curr ) - 1
)
)
Regards,
Xiaoxin Sheng
@blackavipowerbi , Make sure ATDCalendario is date table and marked as Date table(Option on right click of the table)
Also, hoping measure [Qtd. de Atendimentos] is not using any time intelligence function
Tks!!! Qtd. de Atendimentos calc is like this:
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 |
---|---|
113 | |
99 | |
75 | |
73 | |
49 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |