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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
akendrick15
Frequent Visitor

Calculating the difference between two columns

I am wanting to show the difference between the columns for our week-over-week comparison. It could be on a drill-through page or another visual.

Any help is greatly appreciated. 

Power BI WoW.jpg

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

Hi @akendrick15 ,

 

Try formula like below:

According to the information you provided, the external filter conditions are the category corresponding to the row and the date corresponding to the column, respectively. So you can use the alexcept function to keep the filter conditions for both columns.

Cus_Ter =
CALCULATE (
    SUM ( 'Table'[Date] ),
    ALLEXCEPT ( 'Table', 'Table'[Customer], 'Table'[Date] )
)
    - CALCULATE (
        SUM ( 'Table'[Date] ),
        ALLEXCEPT ( 'Table', 'Table'[Terminal], 'Table'[Date] )
    )

 

If the problem is still not resolved, please provide detailed error information and test data. Looking forward to your reply.


Best Regards,
Henry


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.