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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. 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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.