cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Post Patron

## Your Best Practice for calculating goals and goal achievment

Hello Community,

I would like to know how you guys approach the topic of goal achievement calculation.

Suppose I receive a report with Impressions on a daily basis and the company has an Impression Goal. They will reach at least 150.000 Impressions a month. The management would then only like to know to which degree this goal is fullfillt or not (goal achievement).

Currenty I create the goal value (here 150.000) and the goal achievement (simple ratio of the daily sum and the goal) with a measure. But since I am creating lots of management dashboards with many KPI and such numbers, it results in many measures as well - hence I was wondering if there might be a nicer way a best practice to it.

I am looking forward to you share your ideas with me.

Thank you

1 ACCEPTED SOLUTION
Microsoft Employee

Measure is more appropriate in your scenario as calculated columns will not react to slicer selections. See this KB.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
9 REPLIES 9
Microsoft Employee

@raymond,

`Month = MONTH(Table1[Date])`
`Impressions Goal per Month = 150000`
`Goal Achievement = CALCULATE(SUM(Table1[Impressions on a daily basis]),ALLEXCEPT(Table1,Table1[Month]))/ CALCULATE(max(Table1[Impressions Goal per Month]),ALLEXCEPT(Table1,Table1[Month]))`

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Patron

Thank you, looks neat. Would you say that one method has some advantages? Also in regards to performance maybe.

Microsoft Employee

https://community.powerbi.com/t5/Desktop/column-vs-measure/td-p/13201

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Patron

Thanks Lydia,

regarding your example. How would you change the scenario if I want to take month and year into account? Would you instead of month create a yearMonth number and put it into the equation.

Microsoft Employee

@raymond,

Yes. You can create a column using DAX below, then replace Month field in the goal achievement column with YearMonth column.

`YearMonth=FORMAT(Table[date],"YYYY-MMM")`

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Patron

@v-yuezhe-msft: as I am reading through the articles I wonder whether a calculated column for monthly goal is the right tool to choose. Is there really a row by row relation in such data? Which method would you prefer between the two?

Microsoft Employee

@raymond,

It depends on your requirement. Do you want to add the newly created measures in slicer? Or do you want to make the new measures respond to slicer? How many rows in your table?

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Post Patron

The first priority is to have it react to slicers. It is not a business case where I need to put it in a slicer yet. The tables are usually large. Am I assuming right, if a measure would be more appropriate?

Microsoft Employee

Measure is more appropriate in your scenario as calculated columns will not react to slicer selections. See this KB.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

#### Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

#### Power BI Monthly Update - August 2024

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

#### Fabric Community Update - August 2024

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

Top Solution Authors
Top Kudoed Authors