cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DiegoReis
Advocate III
Advocate III

Sum with filter selected

Hi all.

 

I have 3 cards wiht values.

 

1 - Values of month selected

2 - Values all Month

3 - I have to calculate the values until month selected.

 

1 and 2 are ok missing 3

 

ty.

1 ACCEPTED SOLUTION

@DiegoReis,

Create measure using DAX below.

Measure = CALCULATE(SUM(Planilha1[values]),FILTER(ALL(Planilha1),Planilha1[month]<MAX(Planilha1[month])))

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-yuezhe-msft
Microsoft
Microsoft

@DiegoReis,

Could you please share sample data of your table and post expected result in table format?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Look this imagem

val.PNG

 

 

https://drive.google.com/file/d/11lCWE0-K-c7J9lAKC9KFnnlq8GAQyhWZ/view?usp=sharing

 

link for download this example

 

Ty

@DiegoReis,

Create measure using DAX below.

Measure = CALCULATE(SUM(Planilha1[values]),FILTER(ALL(Planilha1),Planilha1[month]<MAX(Planilha1[month])))

1.JPG

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

DiegoReis
Advocate III
Advocate III

I use this

 

AllMonths = CALCULATE(SUM(CONTABIL[VALOR])+SUM(CUSTO[VALOR_OBJ]); ALL(MES[Mes]); CUSTO[Flag] = TRUE())+0

SelectMonth = CALCULATE(SUM(CONTABIL[VALOR])+SUM(CUSTO[VALOR_OBJ]); ALLEXCEPT(MES[Mes]); CUSTO[Flag] = TRUE())+0

Helpful resources

Announcements
August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power BI Dev Camp Session 24 without aka link and time 768x460.jpg

Ted's Dev Camp - July 28, 2022

Watch Session 24 of Ted's Dev Camp along with past sessions!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors