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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Elie_HUCHET
Helper II
Helper II

Creation of a measurement allowing to calculate the evolution between two periods through temporal

Hello, I have a problem. I would like to create a measure allowing to make the comparison between two periods which are animated by filters. Here, my temporality is weekly (measure that I created).
As you can see there are two temporal filters which each animate the two tables and independently.
When I move one of the two cursors the data is updated. For example, if I move the cursor of the filter to the top left, the table on the left is updated and the table on the right does not change.
What I would like is to compare these data with each other through the filters. I made measurements to represent: measurement 8.2 is "zonier average (before)" and measurement 8.3 is "zonier average (after)". These metrics work but when and updates when I change filters.
The problem is that when I want to differentiate between these measurements, it doesn't work.
Indeed, in my measurement 8.4 the result is 0. Except that is incorrect here.
So I would like this metric to show the difference between these two time periods and update like the rest of the table.
Thanks for your help 🙂 Prob.PNG

8 REPLIES 8
Elie_HUCHET
Helper II
Helper II


The problem is that my table where I have my data and the same as my table where I have my dates. Do I have to create a calendar table to link the two tables?

It is very much recommended that your data model have a dedicated calendar table.  In your scenario you will also need disconnected tables for your slicers.

Elie_HUCHET
Helper II
Helper II

I duplicate the table. But when I subtract period 1 minus period 2 it still doesn't work.

Elie_HUCHET_1-1689687554743.png

 

Check that your measures correctly grab the values from the two slicers.

 

Might be easier to help if you can provide a sample pbix.

Elie_HUCHET
Helper II
Helper II

No, all data are on a same table. I just created a column week thanks to my column date

Duplicate your fact and dates tables.

lbendlin
Super User
Super User

Have you duplicated your fact table and calendar table?

ok I'm going to create a calendar table to link the two tables. Do you think it's still possible to create a measure with two time filters on the slide?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.