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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Chandrashekar
Resolver III
Resolver III

Help with Dax

Hello,

 

Can you please help me with Dax as not getting value for previous month.

 

I need this for some purpose as am aware to get this creating relationship.

 

Chandrashekar_0-1720776324382.png

 

Sample File: PBIX 

 

Regards,

Chandrashekar B

1 ACCEPTED SOLUTION

Sorry and I do not understand what do you mean by, [I do not want give relationship].

Your file already had a relationship,

my first suggestion was changing the relationship.

 

But, I assume deleting the relationship. Am I correct?
Please correct me if I am wrong.

Jihwan_Kim_0-1720790394292.png

 

Jihwan_Kim_1-1720790811486.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

5 REPLIES 5
Jihwan_Kim
Super User
Super User

Hi,

I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.

Jihwan_Kim_1-1720777553168.png

 

 

Jihwan_Kim_0-1720777540684.png

 

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hello,

 

I do not want give relationship. is it possible without relation by using DAX.

DAX as follows
1. Selected_month = SELECTEDVALUE('Calendar'[MonthYear]) ' stores selected month
2. Selected_Month_Prev1 = date(year([Selected_Month]),Month([Selected_Month])-1,1) 'stores selected motnh -1 .for ex: if selected month is Apr-24 it stores Mar-24
I need dax for both selected month &  Selected_Month_Prev1

 

Sample File: PBIX 

 

Regards,

Chandrashekar B

Sorry and I do not understand what do you mean by, [I do not want give relationship].

Your file already had a relationship,

my first suggestion was changing the relationship.

 

But, I assume deleting the relationship. Am I correct?
Please correct me if I am wrong.

Jihwan_Kim_0-1720790394292.png

 

Jihwan_Kim_1-1720790811486.png

 

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Thank you. It is working perfectly.

 

Regards,

Chandrashekar B

Hello,

 

Thank you. Let me check and get back you on it.

 

Regards,

Chandrashekar B

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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