Forum Discussion
Anonymous
2 years agoNot applicable
No data appearing in PowerBI visual
I am trying to create a pie chart that has a measure applied as a filter: As you can see in the image, I have applied the "filter" on the pie chart. The rows where "filter"= 1 also exist in m...
- Anonymous2 years ago
Hi Anonymous
Due to certain security regulations, I am unable to open your link. I restored the data based on your screenshot and here are my testing to help you.
Since I don't know how the two measures in your date table are written, I used a slicer to replace them.
My Date table:
I added a measure to calculate the count.
count = COUNTX(FILTER(sample_data, [filter] = 1), [created_at])Then put it into the pie chart.
Best Regards,
Yulia XuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
2 years agoNot applicable
Anonymous Thank you. This is exactly what I needed. But I wonder why we cant use the measure as a filter directly.
I have one more question about the count measure:
count = COUNTX(FILTER(sample_data, [filter] = 1), [created_at])How do I update this to count only the distinct rows in the table?