March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I've this measure:
- Mês Atual = MAX('BD Custos Serv'[Mes])
which I use to get the most recent month, giving all the data I'm currently working with.
This next measure:
- Custo Mês Atual = CALCULATE(SUM('BD Custos Serv'[Custo])
,FILTER('BD Custos Serv', 'BD Custos Serv'[Mes]='BD Custos Serv'[Mês Atual]))
should give me the summed up cost for that current month, but it gives me the total cost as it had been calculated with no filter at all.
Any help is appreciated! Thanks in advance!
Solved! Go to Solution.
@JonCastilho - Try this:
Custo Mês Atual =
VAR __MesAtual = [Mes Atual]
RETURN
CALCULATE(SUM('BD Custos Serv'[Custo]),FILTER('BD Custos Serv', 'BD Custos Serv'[Mes]=__MesAtual))
@JonCastilho - Try this:
Custo Mês Atual =
VAR __MesAtual = [Mes Atual]
RETURN
CALCULATE(SUM('BD Custos Serv'[Custo]),FILTER('BD Custos Serv', 'BD Custos Serv'[Mes]=__MesAtual))
Worked like a charm! Thanks a lot!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
115 | |
76 | |
57 | |
52 | |
44 |
User | Count |
---|---|
167 | |
117 | |
63 | |
57 | |
50 |