Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I am attempting to work with Distinct Count on my items table. We currenlty have 152,000+ items listed and when I use the measure Number of Items=DISTINCTCOUNT('Item'[Code]) I get the correct number initially. My item table has no associated dates and is tied to my sales table using the code column. When I use the sales table to calculate qty sold, qty sold last year, and qty growth (sorting by category) it works beautifully. When I add a column showing the count of items we carry, the date filter seems to interfere with the item count. It goes from 152,000+ to 19,000.
Why is my date sorting messing with that measure? It works perfectly in PowerPivot.
Proud to be a Super User!
Solved! Go to Solution.
You probably have a bi-directional relationship set up in Power BI.
Is the relationship between the tables bi-directional? This might be causing the reverse filtering. Try to set it to one way.
You probably have a bi-directional relationship set up in Power BI.
And that is why I stopped fighting it and asked here. Something relatively simple was overlooked.
Thanks for the help. Both were solutions but could only mark one so I marked the top one.
@austinsense Don't tell Avi that I missed that one. He covered it in training.
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |