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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.