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
sivadoss87
Frequent Visitor

How to find the YTD Average based on month wise data

Hi All,

 

I have a monthwise coverage value for the divisions and have a group coverage value highlighted in green.  

 

The monthwise covearge values for all the divisions to be summed up(15.66+22.50+20.76+25.97=84.89) and divided by the group coverage value (84.89/84.91)and calculating the AVG coverage value (for 2017-01, (84.89/84.91) =100% .pls see the below Coverage AVG),  finally i have to find the YTD Avearge . its a average of all the months coverage AVG

PBI_forum.png

 

Please tell me how this can be achieved by DAX . Thanks in advance.

 

Regards,

P.Kalidoss

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Is the Group number just a static value?

 

Looks like you would want to import your top table, Month, Div1, Div2, Div3, Div4 although you might want to import it as:

 

Month,Division

2017-01,15.66

2017-01,22.50

2017-01,20.76

2017-01,25.97

...

 

Then you could create a measure like:

 

Grand Total = SUM([Division])

If your Group is in its own table, you could create a measure:

 

Measure = Table1[Grand Total] / Table2[Group]

You would need another table for your bottom table and could do a simple average of the values.

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
v-ljerr-msft
Employee
Employee

Hi @sivadoss87,

 

Have you tried the solution provided by @Greg_Deckler? Does it work in your scenario?

 

If it works, could you accept it as solution to close this thread? If you still have any questions, feel free to post it here. Smiley Happy

 

Regards

Greg_Deckler
Super User
Super User

Is the Group number just a static value?

 

Looks like you would want to import your top table, Month, Div1, Div2, Div3, Div4 although you might want to import it as:

 

Month,Division

2017-01,15.66

2017-01,22.50

2017-01,20.76

2017-01,25.97

...

 

Then you could create a measure like:

 

Grand Total = SUM([Division])

If your Group is in its own table, you could create a measure:

 

Measure = Table1[Grand Total] / Table2[Group]

You would need another table for your bottom table and could do a simple average of the values.

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.