cancel
Showing results for
Did you mean:

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Anonymous
Not applicable

## 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?

Hannah

1 ACCEPTED SOLUTION
Community Support

Hi @Anonymous ,

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.

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.

2 REPLIES 2
Anonymous
Not applicable

THANK YOU SO MUCH ❤️

Community Support

Hi @Anonymous ,

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.

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.

Announcements

#### Power BI Monthly Update - July 2024

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

#### Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors
Top Kudoed Authors