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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jayshamone
Helper I
Helper I

DAX How many datasets have changed on an ordinal scale?

Hi,

 

I have a dataset with the following tables:
[Users], [Date], [Tier], [Facts]. The [Fact Table] includes the combination of the three other tables.

The values [Tier]-Table are on an ordinal scale.

 

The question, I would like to answer is: 

How many users have changed from a lower tier to a higher tier (and vice versa) within one month.

 

In an example: 

Facts [Date, User, Tier] = {[2021-01-01, 1, 1], [2021-02-01, 1, 2], ....}

 

Here User 1 has sunken from tier1 to tier2 in the timespan from 2021-01-01 to 2021-02-01. 

How can I define that measure to get the information how many users have sunken and how many have risen?

I included a demo report / dataset.

 

Thank you. 

2 REPLIES 2
lbendlin
Super User
Super User

You want to be more specific.  Within your interval a user may rise and fall multiple times. Are you only interested in the snapshot comparison, or do you want to know the whole story?

What does "within one month" mean?  What is the length of that?  How would you compare February to March against July to August?

 

Your sample data is a little light.

 

lbendlin_0-1629419096993.png

 

A snapshot would be enough. Although the number of rises / falls would be even better.

We only have 1 value per user per month - which is always assigned to the first of the month.

So, something like Previousmonth() / dateadd([Date], -1, month) would in principle work - however, I could not get the whole formula to work.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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