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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors