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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Darko_Giac
Helper II
Helper II

Tracking and Adjusting Targets using Power Query

Hi all,

I’m currently working with a fairly large data set (a sample of which is provided in the link below).

I am tracking the number of respondents to a survey, and have created a “have/required” report (in the targets report), which tracks how many respondents we have and the number of respondents that were required for a particular group (gender, race, age, etc…)

 

I have highlighted a few cells in red, as those indicate overages; in other words, we have over collected.

I’m wondering whether there is a way to omit overages, so that it stops tracking at the required number of participants.

For example, if we have 4/3 (4 being the number we’ve collected, and 3 the amount we actually needed), is there a way to stop the process at 3/3, so extra cases don’t get counted in the report?

 

Basically, I would like cell B21, for example, to read 3/3, even though there are more respondents, I would like to adjust/restrict the quotas to no more than what the denominator is set at, so that the numbers won’t show any overages

 

In other words, stop counting even though there might be more respondents.

 

Test Data

 

Hopefully I’ve explained the issue clearly enough! Any help would be greatly appreciated!

Currently using Office 365 Pro Plus

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

@Darko_Giac,

 

To be general, you may create a custom column with IF statement to control the result with M code like pattern below:

 

Column = if ([collected] / [needed]) > 1 "" else [collected] / [needed]

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

1 REPLY 1
v-yuta-msft
Community Support
Community Support

@Darko_Giac,

 

To be general, you may create a custom column with IF statement to control the result with M code like pattern below:

 

Column = if ([collected] / [needed]) > 1 "" else [collected] / [needed]

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.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.