Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
edant
Regular Visitor

Display all companies list with no sales according to date slicer

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

5 REPLIES 5
DataInsights
Super User
Super User

@edant,

 

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:

 

DataInsights_0-1708451692344.png

 

This solution requires a star schema:

 

DataInsights_1-1708451726365.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




v-yohua-msft
Community Support
Community Support

Hi, @edant 

I've created a sample table:

vyohuamsft_0-1708418528452.png

 

 

Then you can find the Sale in the filter next to it and filter for the companies with a Sale value of 0

1.1.png

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

vyohuamsft_2-1708418528455.png

 

 

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.

edant
Regular Visitor

It works only if you are not using a slicer.
If your slicer uses dates (between), the companies reduce.

amustafa
Super User
Super User

 

In your visual, right mouse click and select "Show items with no data" as shown below.

 

amustafa_0-1708361079932.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.