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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
prashantg364
Helper II
Helper II

DAX

prashantg364_0-1773993153072.png

Table create from a dataset.
all column headers are coming from column values
rows are DAX measures.

i need to create a delta column, post-pre

pls suggest


3 REPLIES 3
v-hashadapu
Community Support
Community Support

Hi @prashantg364 , Thank you for reaching out to the Microsoft Community Forum.

 

We find the answer shared by @DanieleUgoCopp  is appropriate. Can you please confirm if the solution worked for you. It will help others with similar issues find the answer easily.
Thank you @DanieleUgoCopp  for your valuable response.

cengizhanarslan
Super User
Super User

You could use a measure as below:

Delta =
CALCULATE ( [Amount], 'YourColumn'[Type] = "Post" )
    - CALCULATE ( [Amount], 'YourColumn'[Type] = "Pre" )
_________________________________________________________
If this helped, ✓ Mark as Solution | Kudos appreciated
Connect on LinkedIn | Follow on Medium
AI-assisted tools are used solely for wording support. All conclusions are independently reviewed.
DanieleUgoCopp
Resolver III
Resolver III

Hello,
try something like calculating Post and Pre separately with CALCULATE filtering that column, then return Post - Pre, basically:

Delta =
CALCULATE([your measure], column = "Post") - CALCULATE([your measure], column = "Pre")

if that doesn’t work it might be because of how the matrix is built, in that case you could also create a disconnected table for Pre/Post/Delta and handle it with SWITCH

Best regards,
Daniele

Helpful resources

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