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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
ericadyson
Frequent Visitor

Data based on the last but one date in a table (but the last but one date is irregular)

Hi there.. I'm stuck!

 

  I want to know if the  LAST DPS (dividend per share) is different to the PREVIOUS one. BUT, the dividends are not announced evenly (some monthly, some 3 months, others different dates). (so the PREVIOUS date could be anything, last month, last quarter,  6 months ago etc)

 

I have a calculate field in the DATE table, which marks the current month as 0, the previous month as 1 etc.  BUT here's where I'm stuck. I can get the PREVIOUS dividend per share, when the field in the DATE table =1 and that works fine when the dividends per share are issued monthly. But how can I get the previous DPS for all stocks irrespective if it was monthly, quarterly or whatever.

I have tried OR.. couldn't get it to work, tried multiple FILTERS but can't do that on the same field.. I've tried all sorts. I AM STUCK!

Might anyone be able to help? I'd be ever so grateful if anyone could. Thanks Erica

 

1 REPLY 1
v-evelk
Microsoft Employee
Microsoft Employee

Hi,

 

I am not sure that completely understood your issue.

However, I guess, you can try to filter your data by date parts if you set "Date Hierarchy" mode for your date bucket.

 

DateHierarchy.PNG

 

Also, I suppose, you can try to implement date hierarchy fields in your model.

 

Kind Regards,

 

Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
pbicvsupport@microsoft.com

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors