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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, I have a measure for which everytime I refresh the data it gives different results ( But the data in the database has not been touched so it should give me the same result ).
The measure concerned is :
CALCULATE (
COUNTROWS (
FILTER(
SUMMARIZE ( 'Sales', 'Sales'[Name_Surname_ID], "Agg", SUM ( [IS_Customer]) ),
[Agg] > 0
)
)
)
Do you have any idea on what can cause this issue ?
Thank you for help.
Hi @amitchandak ,here is a sample data from the table Sales :
date idSale idOrder Name_Surname_ID IS_Customer Group
2014-01-04 15:38:41.000 1111 555 SebastienVer 1 EU2014
2014-01-04 15:38:41.000 1111 555 SebastienVer -1 EU2014
2014-01-04 15:38:41.000 1111 555 SebastienVer 1 EU2014
2014-01-09 16:36:22.000 1112 5551 veroniqueHoe 1 EU2014
2014-01-09 16:36:22.000 1112 5551 veroniqueHoe -1 EU2014
2014-01-09 16:36:22.000 1112 5551 veroniqueHoe 1 EU2014
2014-03-21 14:01:22.647 1113 5552 CorinneSeres12123 0 EU2014
2015-01-28 14:19:21.000 1118 5556 SebastienVer 1 EU2015
2015-01-28 14:19:21.000 1118 5556 SebastienVer -1 EU2015
2015-01-28 14:19:21.000 1118 5556 SebastienVer 1 EU2015
2015-06-07 19:51:21.433 1133 5566 andreJacques98421 0 EU2015And this is the resulting output :
Group count_IsCustomer
EU2014 2
EU2015 1
@QS7 , Just check do you have any other column of measure as Agg.
Or change this name a bit and check
CALCULATE (
COUNTROWS (
FILTER(
SUMMARIZE ( 'Sales', 'Sales'[Name_Surname_ID], "_Agg", SUM ( [IS_Customer]) ),
[_Agg] > 0
)
)
)
OR
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
The column IS_Customer is a Integer and come from the table Sales.
And the column Name_Surname_ID come from the table Sales aswell but it's a concatenation of 3 fields ( Name, Surname and ID ) in PowerQuery.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 133 | |
| 88 | |
| 85 | |
| 68 | |
| 64 |