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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
sat125
Frequent Visitor

Multiply each filtered value

Hi, 

 

İ want to implement below formula for each month selected. how can i achieve this?

 

for example;

jan= 0,8 feb =2,4 march=-0,8  --> so first 3 months 

 

(((0,8+1) * (2,4 + 1) * (0,8 +1)) - 1) * 100

 

thanks

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@sat125 ,

 

Create a measure using dax below:

Result = 
VAR First_Month = SELECTEDVALUE('Table'[Date].[Month])
VAR First_Month_Value = SUMX(FILTER(ALL('Table'), 'Table'[Date].[Month] = First_Month), 'Table'[Value])
VAR Second_Month = MONTH(EDATE(SELECTEDVALUE('Table'[Date]), 1))
VAR Second_Month_Value = SUMX(FILTER(ALL('Table'), MONTH('Table'[Date]) = Second_Month), 'Table'[Value])
VAR Third_Month = MONTH(EDATE(SELECTEDVALUE('Table'[Date]), 2))
VAR Third_Month_Value = SUMX(FILTER(ALL('Table'), MONTH('Table'[Date]) = Third_Month), 'Table'[Value])
RETURN
(((First_Month_Value + 1) * (Second_Month_Value + 1) * (Third_Month_Value + 1)) - 1) * 100

Capture.PNG 

 

Community Support Team _ Jimmy Tao

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

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@sat125 ,

 

Create a measure using dax below:

Result = 
VAR First_Month = SELECTEDVALUE('Table'[Date].[Month])
VAR First_Month_Value = SUMX(FILTER(ALL('Table'), 'Table'[Date].[Month] = First_Month), 'Table'[Value])
VAR Second_Month = MONTH(EDATE(SELECTEDVALUE('Table'[Date]), 1))
VAR Second_Month_Value = SUMX(FILTER(ALL('Table'), MONTH('Table'[Date]) = Second_Month), 'Table'[Value])
VAR Third_Month = MONTH(EDATE(SELECTEDVALUE('Table'[Date]), 2))
VAR Third_Month_Value = SUMX(FILTER(ALL('Table'), MONTH('Table'[Date]) = Third_Month), 'Table'[Value])
RETURN
(((First_Month_Value + 1) * (Second_Month_Value + 1) * (Third_Month_Value + 1)) - 1) * 100

Capture.PNG 

 

Community Support Team _ Jimmy Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

What is 0,8. Problem statement is not very clear

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

 

İm trying to calculate the inflation ratio of the months selected so in this case ratio from january to march but im unable to do it with multiply quick measure. when i use it it multiplies the first selected month with itself for example 0,8 *0,8* 2,4 * -0,8

but i need it to multiply for the each month selected from month slicer.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors