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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerBIoverExcl
Frequent Visitor

Linking Time Intelligence to Text

Dear all,

 

I am breaking my head over the following topic. I have a date table and use time intelligence DAX formulas to calculate quarterly sales growth. Although that is working fine, I want to make my formula compatible with a time series notation stored as text.

 

First of all, please find the data structure as shown below:

 

PowerBIoverExcl_0-1677603970846.pngPowerBIoverExcl_1-1677603984072.png

PowerBIoverExcl_2-1677604197610.png

The DimDate table is my date table, and I have linked the 'FullDateKey' to the Date column in the Customer table. This enables the time intelligence formulas to work. However, selecting a specific quarter or day alone with the Date column is not sufficient for my analysis, as the there are several date notations in the 'Time Period'  column which use the same day notation in the Date Column.

 

Example: For quarter Q3-2022, I use the date 1st July 2022 in the Date column, but I have data for that day for 2022 Full Year, LEQ1 Q3, LEQ2 Q3 and Q3 Actuals in the Time Period column (which is in text format). Hence, just filtering only with the Date column aggregates data across different time period notations in the Time Period column and results in a bogus result. I need to filter the dataset further to have PowerBI only work with one specific Time Period as well. Unfortunately, when doing so I get empty columns:

 

PowerBIoverExcl_3-1677604816661.png

I do not know why, because the Time Period and Date columns are both present in the Customer table. Ideally, the user only selects a time period in the Time Period column, which is linked to the Date column and which would enable PowerBI to use time intelligence formulas. Can anyone help me link the Time Period column to the Date column, or know any other way forward? 🙏

2 REPLIES 2
PowerBIoverExcl
Frequent Visitor

Hi @Greg_Deckler, thanks for the links. I think I am in need of a bit more tailored solution.

To start off, I calculate the sales in last quarter using the following formula: 

Sales LQ =  CALCULATE([Sum of Sales]DATEADD(Customer[Date],-1,QUARTER))
 
As mentioned in my initial post, this formula works fine on its own, but I need it to comply with the Time Period column. How can I manage this? When looking at the links I was referred to this post but I don't see a way forward yet: https://community.powerbi.com/t5/Quick-Measures-Gallery/To-bleep-With-NEXTDAY-Lone-Biker-of-the-Apoc....
 
Thanks for the support
Greg_Deckler
Community Champion
Community Champion

@PowerBIoverExcl You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.