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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jcamilo1985
Helper III
Helper III

measurement or modeling and whichever is best

good afternoon experts
I have a scenario like the one captured in the images,

 

jcamilo1985_0-1602107814409.png

jcamilo1985_1-1602107833699.png

jcamilo1985_2-1602107874309.png

 

I need to express in a graph the number of companies that have no sales.
the table "SalesEnterprise", has all the sales made, the table
assignment has the executive who must make the sale to each company.
However, I cannot obtain the value of those companies to which no product has been sold
can someone advise me to get the result I need.
Thank you

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

@jcamilo1985

 

First, why is your "intermediate table" hidden? you should use this table in slicers, action filters...

You should also avoid the many-to-many relationship between the two fact tables and create a dimension table with the field being connected instead.

As for your question, do you need a simple count of companies without sales? If so, you can try:
Count of Companies Without Sales =
VAR Companies = VALUES(intermediate table [Id_empresa]
VAR NSales = CALCULATEDTABLE(VALUES(intermediate table [Id_empresa], FILTER(intermediate table [Id_empresa], [Sum of Sales] >0)
Return
COUNTROWS(EXCEPT(Companies, NSales)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

@jcamilo1985

 

First, why is your "intermediate table" hidden? you should use this table in slicers, action filters...

You should also avoid the many-to-many relationship between the two fact tables and create a dimension table with the field being connected instead.

As for your question, do you need a simple count of companies without sales? If so, you can try:
Count of Companies Without Sales =
VAR Companies = VALUES(intermediate table [Id_empresa]
VAR NSales = CALCULATEDTABLE(VALUES(intermediate table [Id_empresa], FILTER(intermediate table [Id_empresa], [Sum of Sales] >0)
Return
COUNTROWS(EXCEPT(Companies, NSales)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






v-deddai1-msft
Community Support
Community Support

Hi @jcamilo1985 ,

 

Would you please show us more details about your requirements? I am not familiar with the language in your screenshot, so I really can't help you well.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.