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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
waterdatadude
Regular Visitor

How to use only one value per project name to calculate budget

Hi All,

 

I'm trying to do something that I feel may be simpler than I'm making it out to be, but essentially I am trying to show budgets for various projects, however in the source data, the budget value is duplicated for multiple components of the project, so when they are summed for the visualization, it's much higher than it should be. I originally set out to remove all duplicates, but it's a big dataset with some general budgets that could be duplicated across multiple different projects, so if I were to remove all duplicates, it would potentially remove identical budgets for different projects.

 

In ArcGIS, I recall a simple button to ensure a visualization just pulled in one value per "category," but I can't seem to figure out a simple solution for this within Power BI. Any insight would be greatly appreciated! Happy to provide any more info to help shed light on this.

 

waterdatadude_0-1662130850273.png

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@waterdatadude 

Give this a try.  It collapses eash Project / Budget into a single row then adds them up from there.

Project Budget Amount =
SUMX (
    GROUPBY ( 'Table', 'Table'[Project], 'Table'[Project Budget] ),
    'Table'[Project Budget]
)

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@waterdatadude 

Give this a try.  It collapses eash Project / Budget into a single row then adds them up from there.

Project Budget Amount =
SUMX (
    GROUPBY ( 'Table', 'Table'[Project], 'Table'[Project Budget] ),
    'Table'[Project Budget]
)

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

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