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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MuthalibAbdul
Helper II
Helper II

Month to Month and Week to week diff in a line graph

Expected solution Youtuve Tutotial

Expected 

MuthalibAbdul_1-1754183644111.pngMuthalibAbdul_2-1754183662527.pngMuthalibAbdul_3-1754183687042.pngMuthalibAbdul_4-1754183703737.png

 

My results

MuthalibAbdul_5-1754183719224.png

MuthalibAbdul_6-1754183732556.pngMuthalibAbdul_7-1754183740911.png

MuthalibAbdul_8-1754183748733.png

 

I am trying to build a graph that shows month by month diff and percentages. The only difference between the video and my scenario is my total cannot be a sum because I am counting patients names. Hence countrows functions to count how many patients were seen. However my results should ideally be total encounters and the previous month diff on the right. My total encounter and Previous month are exactly same though. Its like I am using similar function when infact I am using two diff measures

 

 

4 REPLIES 4
v-sdhruv
Community Support
Community Support

Hi @MuthalibAbdul ,

Just wanted to check if you got a chance to review the suggestions provided and whether that helped you resolve your query?

Thank You

v-sdhruv
Community Support
Community Support

Hi @MuthalibAbdul ,

You can try-

PM Encounters = 
CALCULATE(
    [Total encounters],
    DATESINPERIOD(
        'Calendar'[Date],
        EOMONTH(MAX('Calendar'[Date]), -1),
        1,
        MONTH
    )
)

Hope this helps!


danextian
Super User
Super User

Hi @MuthalibAbdul 

It seems like you are  using a dedicated dates table but you haven't turned off auto-datetime (.[Date] after the date colunmn). Try disabling it and also set your dates table as such. Set and use date tables in Power BI Desktop 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors