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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sinanalmac
Resolver I
Resolver I

Divide Mont by YTD total

Hi All I need to create a measure  Month by YTD 


This is my mesare

 

Measure 4 = CALCULATE(SUM(Rpl_SELL[TURNOVER]),ALLSELECTED(Rpl_SELL[MONTH],Rpl_SELL[YEAR]))

 

 
I want  to  divide   the month (the red one) to Current YTD(the blue one)

 

How can I do that?

sinanalmac_0-1632134625130.png

 

1 ACCEPTED SOLUTION

Hi, 
I found the solution.

TurnoverYD = CALCULATE(SUM(Rpl_SELL[TURNOVER]), ALL(Rpl_SELL[DATE].[Year],Rpl_SELL[DATE].[Month],Rpl_Satis_Flow_Unisel[DATE].[Day]))

 This one  is  working on my dashboard 


View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@sinanalmac , You can get it using the date table and get measure like

 

example

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"12/31"))

 

or

 

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD('Date'[Date],"3/31"))

 

and then try

hi @amitchandak 
thank you  for your  help 

But  with your  measure, I Get the same result 

sinanalmac_0-1632139102428.png

 

Best regards
Sinan 

 

Hi, 
I found the solution.

TurnoverYD = CALCULATE(SUM(Rpl_SELL[TURNOVER]), ALL(Rpl_SELL[DATE].[Year],Rpl_SELL[DATE].[Month],Rpl_Satis_Flow_Unisel[DATE].[Day]))

 This one  is  working on my dashboard 


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.