Showing results for 
Search instead for 
Did you mean: 
Helper II
Helper II

Line Graph in Power BI

I need to create a line that shows the weekly Email Open rate 


Example of Original Data:



I have email id, email name, activity date(when an email was sent and opened), SentCount, Open Count, week and month


1. An email is sent only on 1 Date

2. Email can be opened on multiple days

3. OpenWeek is Sent Date - Open Date in Weeks


How can I create a line chart in Power Bi that would show the weekly open rate 


Example if I create a Rate Table:



I want to create a line graph that would should the Weekly Open rates:




Helper II
Helper II

Sorry, I could not follow.
I have an Activity date that has the date of when an activity was done either sent or opened.
Now I need to calculate the open rate in weeks [1, 2 , 3...... 52 weeks] after an email was sent.

And show the open rates in weeks in a line graphs

The rates will be in % 

Super User IV
Super User IV

@ajantika25 , Not very clear.

But the measure

Ratio = divide(sum(Table[Open Count]), sum(Table[SentCount]))


Is the one should give %. Then move Week Date(Activity Date), Month and Month week number to Date/week table and create a week Rank column


Week Rank = RANKX(all('Date'),'Date'[Week date],,ASC,Dense)


You can visualize with week of you can create measure to compare

Then measures

This Week = CALCULATE([Ratio], FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))
Last Week = CALCULATE[Ratio], FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))



Power BI — Week on Week and WTD

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors