cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DavidPorTodos
Helper I
Helper I

Data Model - filter through column with list of Quarters and normal quarters column

Hi Community,

I have a complex data model  with several Dimensions and Fact tables.

In my example i'll talk about 2 Fact tables, one has start date and end date, the other one just a quarter and years.

The Client would love to filter through both tables sometimes by year, sometimes by quarter and see how the measures changes over time.

I have created in the Table 1 with start date and end date a column that groups the list of quarter between the start date and the end date, then related this column to a bridge table with just unique values inside this column (Table "BridgeYearQuarter")

BridgeYearQuarter is then related to another bridge ("MidYearQuarterList") including the Quarters and all combination from the "BridgeYearQuarter" (pict2). I had to set the relationship as BOTH.

Finally this second bridge is related to my "DimYearQuarter" with all unique Quarters that will be offered as a filter to the customer.

 

Pict1 - Data model

DavidPorTodos_0-1679068215025.png

Pict2 - "BridgeYearQuarter"

DavidPorTodos_1-1679068583571.png

 

Now my measures are working just partially, I believe due to the Both relationships set, and show me the right results when the calculation is done year by year and wrong results when it should work on the total.

My KPIs are acting the same and if I cretae Measureslike AVG or Median of the values through several years then just the last year is taken into consideration.

DavidPorTodos_3-1679069539384.png

Help please

 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @DavidPorTodos,

It seems like a common date range analysis requirement, perhaps you can take a look at Greg’s blog 'start date', 'end date' part if helps:

Before You Post, Read This 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @DavidPorTodos,

It seems like a common date range analysis requirement, perhaps you can take a look at Greg’s blog 'start date', 'end date' part if helps:

Before You Post, Read This 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
DavidPorTodos
Helper I
Helper I

I have tried this approach as well

Abstract Thesis 110: Power BI- Text Part slicer to filter/search text - YouTube

Unfortunately the error persists when creating simple measures.

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.