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
Marcusbja
Regular Visitor

Missing targets in Gauge

Hi,

I've a table with daily targets per date and another table with sales quantity.

 

The sum of all daily targets is 248 but since we are missing a day with sales the cumulated target in the gauge is also missing the target for the day with no sales.

 

As you see below, i'm missing bot the target and the sales (zero) in the table.

 

The table fomula is:

 

 

Results = SUMMARIZE(Sales;
Dates[DateCYFY2020];
"Budget"; SUM(Budget[Budget]);
"Sales"; SUM(Sales[quantity]);
"Target"; SUM(Budget[+30%])
)

 

 

Should be:

 

DayBudgetSales
121
222
323
420
522

 

What it looks like (the day is missing instead of showing value 0 in Sales)

DayBudgetSales
121
222
323
522
1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @Marcusbja 

Instead of a new table, with correct relationship, it works as well.

Capture7.JPGCapture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
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

4 REPLIES 4
v-juanli-msft
Community Support
Community Support

Hi @Marcusbja 

Instead of a new table, with correct relationship, it works as well.

Capture7.JPGCapture8.JPG

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

Hi,
you SUMMARIZE the data on the base of the Sales table.
If there is no sales row, it cannot be summarized.

 

https://dax.guide/summarize/

 

Please give Kudos for support.

If I answered your question, please mark my post as solution, this will also help others.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


Hi,

So if I change the input table to Budget (where I have a value for the day where I am misssing sales it'll work?

I assume it, but I have no further information about your model to validate it.
Otherwise, you can also implement the proposal of Maggie Li.

 

Please give Kudos for support.

If I answered your question, please mark my post as solution, this will also help others.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.