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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

How can I get the % of change between 2 date columns?

I have 2 date columns in which I'm trying to get the difference between them as a percent, here are the columns 

bamamatting_0-1668437779234.png

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

Sorry for late back. Did you do it in a measure? If so, you should create a calculated column instead of a measure.

vkalyjmsft_0-1668741569426.png

When you enter the Brace "[", all columns will appear automatically, directly choose the column in the list instead of entering the column name.

vkalyjmsft_1-1668741683904.png

Best Regards,
Community Support Team _ kalyj

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

6 REPLIES 6
v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

Is your problem solved? If so, would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

 

Best Regards,
Community Support Team _ kalyj

v-yanjiang-msft
Community Support
Community Support

Hi @Anonymous ,

According to your description, here's my solution.

Diff =
IF ( [InvoiceDate] > [OrderShipRequestDate], 0, 1 )

Then put the Diff column in a visual and select Average in the option.

vkalyjmsft_0-1668491556889.png

I attach my sample below for your reference.

 

Best Regards,
Community Support Team _ kalyj

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

 

Anonymous
Not applicable

So it's true I do understand the logic, why is it that when I try that formula, I can't select those columns 

 

bamamatting_0-1668518290124.png

 

Hi @Anonymous ,

Sorry for late back. Did you do it in a measure? If so, you should create a calculated column instead of a measure.

vkalyjmsft_0-1668741569426.png

When you enter the Brace "[", all columns will appear automatically, directly choose the column in the list instead of entering the column name.

vkalyjmsft_1-1668741683904.png

Best Regards,
Community Support Team _ kalyj

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

Anonymous
Not applicable

Trying to calcualte the average amount of orders shipped on time. If invoice date > ordershiprequestdate then it's late = 0 else 1, then find the average of that as a whole. @amitchandak 

amitchandak
Super User
Super User

@Anonymous ,what you mean by % change between two date ?

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.