Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi
Can any one please help me on how to calculate date difference from effictive start and effective end dates in DD/MM/YYYY format to use as date hierarchy filter
Effective start Effective End expected output
1 march 2023 31 march 2023 30 march 2023
Hi @Anonymous
If you are trying to change the columns display format you can do it by selecting your columns and from Column Tools you can change Dates formats
Otherwise please provide more details in case you have a different need.
Did it work ? Mark it as a solution to help spreading knowledge
Was this exchange helpful? A kudos 👍 would be appreciated
@Anonymous
what's the epxected output based on the sample data you provided?
Proud to be a Super User!
Hi
Effective start Effective End expected output
1 march 2023 31 march 2023 30 march 2023
Hi @Anonymous
To reach this result add a calculated column :
expected output='MyTable'[Effective End ]-DAY('MyTable'[Effective start])
If you are trying to calculate the difference between Start and end date you should use this code instead
Difference= DATEDIFF('MyTable'[Effective start],'MyTable'[Effective End],DAY)
Did it work ? 👍 A kudos would be appreciated 📢 Mark it as a solution to help spreading knowledge
is the expected output one day earlier than the effective end?
Proud to be a Super User!
User | Count |
---|---|
76 | |
75 | |
46 | |
31 | |
27 |
User | Count |
---|---|
99 | |
91 | |
51 | |
48 | |
47 |