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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

DAX Calculating Production by State

Hello,

I'm new to the community, and just beginning to learn Power BI.  I have 5 years of experience with Tableau, and the crossover is more than I expected.  

I am trying to add up some numbers and then compare them to another number.

I was able to do it in table by creating the dax: total production = sum('A'[production])+sum('B'[production])+sum('C'[production])

ibesmond_0-1593632281458.png

 


This is the whole table. I then want to compare the production circled in red to the total production circled in black.

ibesmond_1-1593632281464.png

 


But when I use the same measure on a bar graph I am getting an aggregated total for each.  

 


As you can see AK is at 186.6K whereas total production is at 180.5K, but in the bar chart annual production looks like it doesn't even make up 0.1% compared to total production, when it should be more like 103%

 

To give you a little background, I have four tables, and they are all joined by state.

 

 

 

Appreciate the help.  Thank you.

 

 

2 REPLIES 2
Anonymous
Not applicable
lbendlin
Super User
Super User

provide some sample data in usable format (ie not a picture), make sure to include the year column, show the current outcome and the expected outcome.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.