Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm very new to BI and measure creation, so please bear with me. I have a measure I created to calculate the difference between two column amounts based on the column date.
In some of those colums there are (blank) spaces or null in place of 0's. How do I update my current measure to replace null with 0?
I've tried transforming the data first (to bypass needing to create a measure), but for some reason it still only shows up as blanks spaces in my data.
Please see below.
@irishtate Perhaps:
Difference =
VAR __Diff =
IF (
HASONEVALUE ( 'AP_Transactions'[PerPost] ),
BLANK (),
CALCULATE (
SUM ( 'AP_Transactions'[TranAmt] ),
FILTER ( 'AP_Transactions', 'AP_Transactions'[PerPost] = MAX ( 'AP_Transactions'[PerPost] ) )
)
- CALCULATE (
SUM ( 'AP_Transactions'[TranAmt] ),
FILTER ( 'AP_Transactions', 'AP_Transactions'[PerPost] = MIN ( 'AP_Transactions'[PerPost] ) )
))
RETURN
__Diff + 0
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |