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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
This is my first post, so if you have any general remarks on the way I ask for help, please let me know.
on topic:
I am using the LINESTX function to predict values based on historucal data. In this case I want to predict the number of sales. In the picture below you can see that the data line (dark blue) is running after today and I think this will influence my results. So my question is how can I remove these values (0) into blanks?
The measure I created up to now is:
So I think I have to add something to this measure. This measure I use finally in the linestx:
Many thanks in advance!
Solved! Go to Solution.
Try
Sumparts =
VAR MaxDate =
MAX ( 'CaseCreatedDate'[Date] )
RETURN
IF (
MaxDate <= TODAY (),
VAR SUMPARTS1 =
SUM ( Sales_per_Customer_per_Date[Invoiced_Quantity] )
RETURN
IF ( ISBLANK ( SUMPARTS1 ), 0, SUMPARTS1 )
)
Try
Sumparts =
VAR MaxDate =
MAX ( 'CaseCreatedDate'[Date] )
RETURN
IF (
MaxDate <= TODAY (),
VAR SUMPARTS1 =
SUM ( Sales_per_Customer_per_Date[Invoiced_Quantity] )
RETURN
IF ( ISBLANK ( SUMPARTS1 ), 0, SUMPARTS1 )
)
Thank you very much, looks like it works fine!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |