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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
tomekm
Helper III
Helper III

Compute changes for the same attribute, when comparing 2 Periods selected by the user in a filter

Hello,

 

I’m trying to come up with a DAX formula or data modelling option that will compute changes for the same attribute, when comparing 2 Periods selected by the user in a filter. The same value in column A appears in each Period, but can have a different value in column B. I’m trying to identify those that aren’t the same value. Here’s my example:

AttributeSub-attributePeriod
AxJan-2023
AyJan-2023
AzJan-2023
BwJan-2023
CmJan-2023
CnJan-2023
AxFeb-2023
AyFeb-2023
AdFeb-2023
BsFeb-2023
CvFeb-2023
CnFeb-2023

 

Expected outcome would be a TRUE/FALSE column that will identify which Attributes are changing sub-attributes from period 1 to period 2. (Note that a single Attribute can have more than 1 sub-attribute in any given month; and that the formula should only consider Attributes that appear in both Periods selected for analysis, i.e. don't show as FALSE an Attribute that appeared in Period 2 but wasn't there in Period 1.. Simply ignore it). Expected outcome table:

AxTRUE
AyTRUE
AdFALSE
BsFALSE
CvFALSE
CnTRUE

 

Thanks a lot.

 

2 REPLIES 2
CNENFRNL
Community Champion
Community Champion

CNENFRNL_0-1679257194253.png


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Thanks for the response; the formula works only partially. The problem/limitations now are that the formula is also labelling as False new entries that are present in current Period that were not existing in the previous Period. Those should be ignored, and only entries present in both Periods should be considered for analysis.

 

Also, there’s a missing dynamic Periods filter, needed to be able to pick the starting period and ending period (for example if I want to compare Period two to Period eight.

 

Finally, how do I only show the False rows, and not the whole table? The measure cant be added as filter.

 

Thank you.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.