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
QLD_Jay
Frequent Visitor

Displaying upgrade costs based on multiple factors

Hi all,

 

I'm struggling with something that I feel should be fairly straight forward and am seeking some advice.

 

I'm currently working on a dashboard to assist with the decision making behind the upgrade of devices across multiple locations and the associated costs.

 

I have 3 tables (amongst others) containing,

1. locations and their Devices (some to be upgraded some not)

2. locations that have a Module (some locations may need their device upgraded but can carry on using the existing Module)

3. the $ value of the New Device and Module (as a static table of values) 

 

So something like (please excuse my crappy html tables),

 

Devices

LocationDeviceUpgrade
Loc1t8001
Loc2t8001
Loc3t10000

 

With a 1..1 relationship with

 

Modules

LocationModule
Loc1Model1
Loc3Model1

 

Upgrade costs

New DeviceCostGSTCost incl GST
T100050050550
Model110010110

 

My aim is to chuck a matrix or table on a page that will display the number of devices that need to be upgraded and total costs based on other parameters the user has set eg. limiting the range of locations being looked at. The costs need to take account of those locations where a new device is required but a Module is not.

 

Should I create a calculated column in Devices that checks to see if a location is also in Modules? Maybe a calculated column in Devices that's filled with the cost from Upgrade Costs if Upgrade evaluates to true?

 

I'm really struggling to produce something functional and would love a bit of advice here. All suggestions welcome!!!

1 ACCEPTED SOLUTION
QLD_Jay
Frequent Visitor

After some screwing around I ended up creating two calculated columns in Devices that returned 0 or 1 based whether or not the device needed an upgrade and had a Module. Then I created a column with a nested if statement that looks something like this.

 

UpgradeCost = IF( AND(Devices[UpgradeReqd]=1, Devices[HasModule]=0 ), 660,

    IF( AND(Devices[UpgradeReqd] = 1, Devices[HasModule] = 1 ), 550,

        IF( AND(Devices[UpgradeReqd] = 0, Devices[HasModule]=0 ), 110, 0

        )

    )

)

 

Eliminates the need for the Upgrade Costs table but now everything is hard coded.

 

Fortunately the numbers won't change for sometime.

View solution in original post

1 REPLY 1
QLD_Jay
Frequent Visitor

After some screwing around I ended up creating two calculated columns in Devices that returned 0 or 1 based whether or not the device needed an upgrade and had a Module. Then I created a column with a nested if statement that looks something like this.

 

UpgradeCost = IF( AND(Devices[UpgradeReqd]=1, Devices[HasModule]=0 ), 660,

    IF( AND(Devices[UpgradeReqd] = 1, Devices[HasModule] = 1 ), 550,

        IF( AND(Devices[UpgradeReqd] = 0, Devices[HasModule]=0 ), 110, 0

        )

    )

)

 

Eliminates the need for the Upgrade Costs table but now everything is hard coded.

 

Fortunately the numbers won't change for sometime.

Helpful resources

Announcements
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.

June 2025 community update carousel

Fabric Community Update - June 2025

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