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
mmakan
New Member

Create Bar graph of measures from 2 tables in same data model

I have 2 separate tables: 1st for Opportunity with measure for "Current Month Actual Sales" and the 2nd for Targets with measure for "Current month's Target" Values. Both have Division.

 

The sales are transactions on daily basis. The targets are set per month.

 

I would like to create one bar graph with both measures on Y axis by Division(X axis). In other words X-axis = Division, Y axis i drag in Current month Actual sales and drag in the 2nd measure Current month Target.

 

The issues I am expriencing is that the bar graph is giving me the correct monthly target but the Actual sales is showing the same values for all the divisions (showing the totals of all divisions)

 

Actuals sales = CALCULATE( SUM(Opportunity[Forecasted Net Annualised CC Y1 (converted)]) ,
    FILTER(Opportunity , Opportunity[YearClose] = MAX(weeknum[Year]) && Opportunity[WeekClose] <= MAX(weeknum[WeekNum])))
 
YTDTarget = CALCULATE( SUM(Targets[Target]) , FILTER(Targets  , Targets[Year] = MAX('weeknum'[Year]) && Targets[Month] <= MAX('weeknum'[Month]) ) )

 

 

0 REPLIES 0

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.

Top Solution Authors