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

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

Reply
Mihaela_Zahari
Regular Visitor

Power BI Predictive Analyses using DAX

Hello, 

 

I am currently trying to achieve a visual showcasing a line chart - one line chart with actual data and one line chart with predicted data given a KPI status (steady 6% decrease of data given a baseline in July 2022). 

 

I have live data feeding daily and the predictive data has to be up until June 2023. 

 

The current steps I have taken are as per below: 

1. Created a calendar table, using the below DAX: 

Calendar = CALENDAR(DATE(2022,7,1),DATE(2023,6,30))
2. Linked my data from my actual data table into the calendar table using the below DAX: 
Total Current Data = COUNTROWS(FILTER(Table1, Table1[Date]='Calendar'[Date]))
3. Need to have the predicted numbers - July is the baseline and has to transfer over, the rest of the data is the earlier month given a 6% decrease - I started the formula below, but it is not the correct one: 
Total predicted data =
IF('Calendar'[Date] = "July",
COUNTROWS(FILTER(Table1, Table1[Date]='Calendar'[Date])),
CALCULATE(COUNTROWS(FILTER(Table1,Table1[Date] = EARLIER(Date) *0.06))))
 
Could someone please assist with step number 3, thank you. 
0 REPLIES 0

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.