Forum Discussion
KPIs visuals Running incredibly slowly
- 2 years ago
You can try to use other functions to mimic the distinct count. Instead of counting from the fact table, we can use it to filter. Try this
Distinct Persons= CALCULATE ( SUMX ( VALUES ( Dimension_Table[PersonID] ), 1 ), Fact_Table )
I have my Person ID in the fact table. Not the Dimension though. So I could do the DISTINCT Count
Do you have a person dimension or is all your person detail stored in the fact table? That could also be affecting your performance
- DebbieE2 years agoCommunity Champion
oh no. I have a person Dimension. I just added the ID to the fact table to make it easier to create the DISTINCTCOUNT against.
- Syk2 years agoResident Rockstar
Okay, so you can use the DAX I posted to count the IDs in the People table but use the fact table to make sure you're getting the proper filtering. I hope that makes sense?
- DebbieE2 years agoCommunity Champion
What Ill do is switch the Person ID back into the DIM table and try the DAX you added and check against the original . I dont like the idea I came up with. Its too prone to errors.........