Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I try to Countif how many times the numbers of value's in one colum exist, if the same value exits in an other colum..
Any one who can help?
Thanks Ellen
Solved! Go to Solution.
Hi @EllenBakker ,
I created a sample pbix file(see attachment), please check whether that is what you want.
1. Create a measure as below to get the number of repetitions of name1
Countif = CALCULATE(COUNT('Table'[name1]),ALLEXCEPT('Table','Table'[name1]))
2. Create a measure as below to judge if the same value for name1 exist in name2
name1 exist in name2? =
VAR _tab =
VALUES ( 'Table'[name2] )
RETURN
IF ( SELECTEDVALUE ( 'Table'[name1] ) IN _tab, 1, 0 )
If the above one can't help you get your expected result, please provide some sample data with Text format and your expected result with calculation logic and special example explanation. Thank you.
Best Regards
Hi @EllenBakker ,
I created a sample pbix file(see attachment), please check whether that is what you want.
1. Create a measure as below to get the number of repetitions of name1
Countif = CALCULATE(COUNT('Table'[name1]),ALLEXCEPT('Table','Table'[name1]))
2. Create a measure as below to judge if the same value for name1 exist in name2
name1 exist in name2? =
VAR _tab =
VALUES ( 'Table'[name2] )
RETURN
IF ( SELECTEDVALUE ( 'Table'[name1] ) IN _tab, 1, 0 )
If the above one can't help you get your expected result, please provide some sample data with Text format and your expected result with calculation logic and special example explanation. Thank you.
Best Regards
Please provide some mock data along with expected result, so someone can suggest a specific solution.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 53 | |
| 40 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 97 | |
| 81 | |
| 35 | |
| 29 | |
| 25 |