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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.