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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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!