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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Aleiadeh
Frequent Visitor

How to calculate row count difference based on date

Good Day;

 

Please I need a solution how to get the rows count detla between two dates.

 

I have simple unpivot table including three column (Bid No. , Date, Bid Status).

 

As per the below photo I make a new measure to calculate the No. of new bids, and its working fine until I select Jan. 18, 2021 then the result will be blank.

 

I know my measure will be working fine if the date column are idintecal and the difference between the dates are 7 days.

 

So, Could anyone support me and give me a dax that can give me the row count detla between two dates dispit how much the difference days between the dates ( This Date and Previous Date)

 

1.jpg

 

Thank you in advance

3 REPLIES 3
v-luwang-msft
Community Support
Community Support

Hi @Aleiadeh ,

Has your problem been solved, if so, please consider Accept a correct reply as the solution to help others find it.
 
Best Regards
Lucien
PC2790
Community Champion
Community Champion

Hello @Aleiadeh,

 

Will you be able to provide your sample data?

Is the Date column in your table has date values at a difference of 7 days?

Hello @PC2790 ,

 

in addition to the questions from @Aleiadeh , did you mark your datetable as datetable?

If not you have to add an ALL(TimeStatus) to you CALCULATE statements.

 

If you need any help please let me know.
If I answered your question I would be happy if you could mark my post as a solution ✔️ and give it a thumbs up 👍

Best regards
Denis

Blog: WhatTheFact.bi

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.