This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi all. I have this sample data (my actual data is much larger and complex):
| promo | position |
| a | A1 |
| a | B1 |
| a | C1 |
| b | A1 |
| b | A1 |
| b | B1 |
| c | B1 |
| c | B1 |
| c | B1 |
| d | C1 |
| d | C1 |
| d | C1 |
| e | P1 |
| e | P1 |
| e | P1 |
I want to detect how many unique "promos" have had a changed in "position"? Looking at the table, I can identify that 2 promos have changed position only i.e. promo a and promo b. How can I make a measure that will show me this exact number, without having to count each time because the actual data is big?
Thanks in advance
Solved! Go to Solution.
Hi, @Anonymous
I am not sure how your actual data model looks like, but try the below.
Or share your sample pbix file's link here, then a more accurate measure can be written.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Hi, @Anonymous
You can easily create a measure to show results.
Like this:
Measure =
SUMX (
SUMMARIZE (
'Table',
'Table'[promo],
"a", IF ( DISTINCTCOUNT ( 'Table'[position] ) <> 1, 1, 0 )
),
[a]
)
If you still have problems, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
You can easily create a measure to show results.
Like this:
Measure =
SUMX (
SUMMARIZE (
'Table',
'Table'[promo],
"a", IF ( DISTINCTCOUNT ( 'Table'[position] ) <> 1, 1, 0 )
),
[a]
)
If you still have problems, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
I am not sure how your actual data model looks like, but try the below.
Or share your sample pbix file's link here, then a more accurate measure can be written.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 25 | |
| 22 | |
| 14 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 25 | |
| 20 | |
| 20 |