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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
icdns
Post Patron
Post Patron

Divide Monthly % by Month Number

Hello, 

 

Need your help in creating a measure/column that computes the YTD%.

The formula of YTD% is Total Monthly Percentage / Filtered Month

 

For example: 

Service: Balance Inquiry

Month filtered: April 2020

(January 2020 = 97.44) + (February 2020 = 97.58) + (March= 100.00) + (April 2020 = 99.56) / Month Selected (April 2020 = 4) 

YTD % = 98.65%

 

Untitled.png

 

But I am encountering an error with my YTD% formula when putting it as a line in my combination chart. Since my column series is my Month.  Below are my formula and error encountered:

 

My formula: FINAL YTD = CALCULATE( [YTD%] / DIM_DATE[Month_No]) 

Error:

 

error.png

 

 

Thank you.

 

 

 

 
 
 
 

 

 

 

 
1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@icdns 

Can you this measure:

My formula: FINAL YTD =
DIVIDE(
    [YTD%],
    MAX(DIM_DATE[Month_No])
) 

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@icdns , you can try

 

divide( [YTD%] ,distinctcount( DIM_DATE[Month_No]) ) //Better take month year -- Safe id one month is missing

 

divide( [YTD%] ,Max( DIM_DATE[Month_No]) )

 

Power BI — YTD
https://medium.com/@amitchandak.1978/power-bi-ytd-questions-time-intelligence-1-5-e3174b39f38a
Power BI — QTD
https://medium.com/@amitchandak.1978/power-bi-qtd-questions-time-intelligence-2-5-d842063da839
Power BI — MTD
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e

Fowmy
Super User
Super User

@icdns 

Can you this measure:

My formula: FINAL YTD =
DIVIDE(
    [YTD%],
    MAX(DIM_DATE[Month_No])
) 

 

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.