Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
fbittencourt
Advocate II
Advocate II

Jon two mesures in one

Hi friends!!

 

Simple case :

 

I have to join 2 mesures  in one

 

 

Surplan 15 = CALCULATE(SUM(FAIT_INDICATEURS[Disponibilité Restante]),FILTER('FAIT_INDICATEURS', FAIT_INDICATEURS[Disponibilité Restante]>0))
 
I need to apply a dynamic filter that i have created for month , month +1

DispoM+1 = CALCULATE(SUM(FAIT_INDICATEURS[Disponibilité Restante]), FAIT_INDICATEURS[MOIS] = FORMAT(EDATE((TODAY()), 1), "YYYYmm"))
 Tks all!!
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@fbittencourt , Try using

DAX
CombinedMeasure =
VAR CurrentMonth = FORMAT(TODAY(), "YYYYMM")
VAR NextMonth = FORMAT(EDATE(TODAY(), 1), "YYYYMM")
RETURN
CALCULATE(
SUM(FAIT_INDICATEURS[Disponibilité Restante]),
FILTER(
FAIT_INDICATEURS,
FAIT_INDICATEURS[Disponibilité Restante] > 0 &&
(FAIT_INDICATEURS[MOIS] = CurrentMonth || FAIT_INDICATEURS[MOIS] = NextMonth)
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

1 REPLY 1
bhanu_gautam
Super User
Super User

@fbittencourt , Try using

DAX
CombinedMeasure =
VAR CurrentMonth = FORMAT(TODAY(), "YYYYMM")
VAR NextMonth = FORMAT(EDATE(TODAY(), 1), "YYYYMM")
RETURN
CALCULATE(
SUM(FAIT_INDICATEURS[Disponibilité Restante]),
FILTER(
FAIT_INDICATEURS,
FAIT_INDICATEURS[Disponibilité Restante] > 0 &&
(FAIT_INDICATEURS[MOIS] = CurrentMonth || FAIT_INDICATEURS[MOIS] = NextMonth)
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors