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
DJ1977
Helper I
Helper I

Calculate the achieved budget per product

Hi.

I need help on how to proceed with this case. I have a data model as shown in the picture below.
Here, the budget for product per customer is defined in FactBudget, and sales per customer and product in FactSales.

 

I have a measure called index = (sum [budget ]) / (sum [sales]). It is formatted in%, and budget is achieved when index >= 100%.

I want to make a visualization in a table that shows districts and sales rep and how many products where they have an index> 100%

What is the easiest way to do this?

Here is the model:

 

DMDM

Any help would be appreciated.

2 REPLIES 2
amitchandak
Super User
Super User

@DJ1977 , Try a measure like

 

Countx(Summarize(FactSales, DimSalePerson[District], DimCustomer[SalesRepId],DimCustomer[ProductName], "_1", [Index]), [Distict])

 

if needed merge DimSalePerson and DimCustomer

Thanks for reply @amitchandak .
I tried this measure. I guess where you wrote DimCustomer [ProductName] you meant DimProduct [ProductName], right?
When I use measure, I get a result that shows all products that Salesrep has sales. (Sales> 1) I was basically looking for those where the index is> = 100%. Is there any way I can do that?

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.