March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I have a table that contains the sales of companies, each sale is a different record on the table.
I also have a date slicer that I work with to see the sales between selected dates.
Now, I want to display instead only the companies which made no sales in the selected time. (of the slicer)
The problem is that whenever I change the dates in the slicer, the companies which made no sales - disappear.
Is it possible to do so?
Regards,
Edan
You can achieve this with a measure and visual filter.
Company With No Sales = IF ( ISEMPTY ( FactTable ), 1 )
Add DimCompany[Company] to a table visual and use the above measure as a visual filter:
This solution requires a star schema:
Proud to be a Super User!
Hi, @edant
I've created a sample table:
Then you can find the Sale in the filter next to it and filter for the companies with a Sale value of 0
If you move the slicer by date after filtering out companies that don't have sales, you can see companies that didn't have sales during a certain date period
How to Get Your Question Answered Quickly
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data)
Best Regards
Yongkang Hua
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your answer.
In your solution, you declared to each date the company and the amount of sales that are being made.
I have hundreds of companies and it would be unreasonable to create for each date a list with all of the companies and the sum of the sales that they made.
Is there another way to do so without declaring the amount for each day?
I meant that if a specific date doesn't have a record of sale - it should be displayed on the list.
I have a table of dates and a table of full companies.
The third table contains records of each sale per company.
I wish to display only the companies that didn't make any sales between certain dates.
It works only if you are not using a slicer.
If your slicer uses dates (between), the companies reduce.
In your visual, right mouse click and select "Show items with no data" as shown below.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |