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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Subtraction based on if formula to create a new column Heading

Hi Experts

 

See link to sample data...

 

Ref to table Logistics in sample file and column New_Reporting_Headings - See 4 rows from bottom i have Total Logistics - I want to create this header based on the following 

 

(Inbound Freight + Duty + Warehousing - Fixed + Warehousing - Variable +SC&L People + outbound Freight) using the if formula??

https://www.dropbox.com/s/tbjnpv2wgiky3wc/PLP_Test.pbix?dl=0 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

solved it

New_Reporting_Headers =
IF( Logistics_[GrpId] = "a3", "External Sales",
IF( Logistics_[GrpId] IN { "a7", "a8" }, "Inbound Freight",
IF( Logistics_[GrpId] IN { "b2", "b3", "b4" }, "Duty",
IF(Logistics_[GrpId] IN { "i5", "i6" }, "Warehousing - Fixed",
IF(Logistics_[GrpId] IN { "i7", "j1" }, "Warehousing - Variable",
IF(Logistics_[GrpId] IN { "i1", "i2", "i3", "i4" }, "SC&L People",
IF(Logistics_[GrpId] IN { "i8", "i9", "j2", "j3" }, "Outbound Freight",
if(Logistics_[Reporting_Headers] IN { "a7", "a8", "b2", "b3", "b4", "i5", "i6", "i7", "j1", "i1", "i2", "i3", "i4", "i8", "i9", "j2", "j3" }, "Total Logistics",
Logistics_[Reporting_Headers]))))))))

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , are you looking Dynamic Title ?
https://www.youtube.com/watch?v=TYLKDPcvgK8
https://www.blue-granite.com/blog/create-a-dynamic-title-in-power-bi-updated

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

solved it

New_Reporting_Headers =
IF( Logistics_[GrpId] = "a3", "External Sales",
IF( Logistics_[GrpId] IN { "a7", "a8" }, "Inbound Freight",
IF( Logistics_[GrpId] IN { "b2", "b3", "b4" }, "Duty",
IF(Logistics_[GrpId] IN { "i5", "i6" }, "Warehousing - Fixed",
IF(Logistics_[GrpId] IN { "i7", "j1" }, "Warehousing - Variable",
IF(Logistics_[GrpId] IN { "i1", "i2", "i3", "i4" }, "SC&L People",
IF(Logistics_[GrpId] IN { "i8", "i9", "j2", "j3" }, "Outbound Freight",
if(Logistics_[Reporting_Headers] IN { "a7", "a8", "b2", "b3", "b4", "i5", "i6", "i7", "j1", "i1", "i2", "i3", "i4", "i8", "i9", "j2", "j3" }, "Total Logistics",
Logistics_[Reporting_Headers]))))))))
Anonymous
Not applicable

Hi Amit - No just to amend the if formula to Total Logistics.... the same way i have combined two headings to give Inbound Freight 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.