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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hannahrusso
Frequent Visitor

DAX Help | Parallel Period (Pbix attached)

Hi!

I am trying do a viz counting of # of hired made in a certain month, and then comparing it to the previous month..

I did a DAX calculation w. Parallel Period but I am getting the entire column total, versus the line by line..

Is this an issue with the relationship? Do I need to do a X function?

 

Pbix model is here: https://drive.google.com/file/d/1mv9DTQ7o0B61Gk-6Geo1ODh6vnWanKX9/view?usp=drive_link

hannahrusso_0-1690308983164.png

 

 

Thank you in advance!!

Hannah

 

 

1 ACCEPTED SOLUTION
v-tangjie-msft
Community Support
Community Support

Hi @hannahrusso ,

 

According to your description, here are my steps you can follow as a solution.

(1)My test data is the same as yours.

(2) We can create a measure. 

# of Hires Previous Month = 
var _pre=MONTH(EOMONTH(MAX('DateTable'[Date]),-1))
return CALCULATE([# of Hires],FILTER(ALL('DateTable'),MONTH('DateTable'[Date])=_pre))

(3) Then the result is as follows.

vtangjiemsft_0-1690424732471.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

View solution in original post

2 REPLIES 2
hannahrusso
Frequent Visitor

THANK YOU SO MUCH ❤️

v-tangjie-msft
Community Support
Community Support

Hi @hannahrusso ,

 

According to your description, here are my steps you can follow as a solution.

(1)My test data is the same as yours.

(2) We can create a measure. 

# of Hires Previous Month = 
var _pre=MONTH(EOMONTH(MAX('DateTable'[Date]),-1))
return CALCULATE([# of Hires],FILTER(ALL('DateTable'),MONTH('DateTable'[Date])=_pre))

(3) Then the result is as follows.

vtangjiemsft_0-1690424732471.png

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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