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.
good afternoon experts
I have a scenario like the one captured in the images,
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
Solved! Go to Solution.
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)
Proud to be a Super User!
Paul on Linkedin.
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)
Proud to be a Super User!
Paul on Linkedin.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
99 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |