Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Employees : all Employees in the company
Employees VIP : Employees having the status of VIP in the company
Employees TIC : Employees having the status of TIC in the company
The relationships between the tables :
Employees - Employees VIP : 1 to many , filter in both directions based on EmpID
Employees - Employees TIC : 1 to 1 , filter in both directions based on EmpID
I am using in a visual columns from the 3 tables :
Employees : EmpID, EmpName, EmpLastName
Employees VIP : Status VIP
Employees TIC : Status TIC
I have this visual where I use data from Employees and Employees TIC :
When I try to add for the previous visual, columns from Employees VIP :
Now I want to show all the Employees, either they belong or not to any VIP or TIC so I selected Show items with no data :
When I try to change the order of the Staus VIP to be before Status TIC :
The display of data changes for the Employees E,F, G and H, I can"t understand this behaviour :
Solved! Go to Solution.
I ended up finding the answer to this behavior :
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data
It's important to note that the mechanism of selecting values for the columns is order-dependent, and can be thought of as a Left outer join operation between tables. If the order of the columns is changed, the results change as well.
powerbi - Show items with no data is not giving expected result - Stack Overflow
I ended up finding the answer to this behavior :
https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-show-items-no-data
It's important to note that the mechanism of selecting values for the columns is order-dependent, and can be thought of as a Left outer join operation between tables. If the order of the columns is changed, the results change as well.
powerbi - Show items with no data is not giving expected result - Stack Overflow
@AmiraBedh regarding VIP table, I see it has one to many relationship, do you expect more than one record for employees, although TIC is 1 to 1
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
If I change the relationship to 1 to 1 it gives the expected result, but I cannot change it in the real model as it is 1 to many. Any workaround ?
@AmiraBedh so I reviewed the queries and the engine is doing different queries when you move the column positions in the visual:
Basically this part of the query is different in both the case and causing the result:
//showing tic then vip
// DAX Query
DEFINE
VAR __DS0PrimaryShowAllCompat =
//
// CALCULATETABLE(
// GENERATEALL(
// KEEPFILTERS(VALUES('Employees'[EmpName])),
// CALCULATETABLE(
// GENERATEALL(
// KEEPFILTERS(VALUES('Employees'[EmpLastName])),
CALCULATETABLE (
GENERATEALL (
KEEPFILTERS (
FILTER (
KEEPFILTERS ( VALUES ( 'Employees TIC'[Status TIC] ) ),
OR (
CALCULATE ( NOT ( ISEMPTY ( 'Employees TIC' ) ) ),
CALCULATE ( NOT ( ISEMPTY ( 'Employees VIP' ) ) )
)
)
),
CALCULATETABLE (
FILTER (
KEEPFILTERS ( VALUES ( 'Employees VIP'[Status VIP] ) ),
CALCULATE ( NOT ( ISEMPTY ( 'Employees VIP' ) ) )
)
)
)
) // )
// )
EVALUATE
__DS0PrimaryShowAllCompat
//vip first then tic
// DAX Query
DEFINE
VAR __DS0PrimaryShowAllCompat =
// CALCULATETABLE (
// GENERATEALL (
// KEEPFILTERS ( VALUES ( 'Employees'[EmpLastName] ) ),
CALCULATETABLE (
GENERATEALL (
KEEPFILTERS (
FILTER (
KEEPFILTERS ( VALUES ( 'Employees VIP'[Status VIP] ) ),
CALCULATE ( NOT ( ISEMPTY ( 'Employees VIP' ) ) )
)
),
CALCULATETABLE (
FILTER (
KEEPFILTERS ( VALUES ( 'Employees TIC'[Status TIC] ) ),
CALCULATE ( NOT ( ISEMPTY ( 'Employees VIP' ) ) )
)
)
)
) // )
// )
EVALUATE
__DS0PrimaryShowAllCompat
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
So it is a normal behavior?
How to achieve what I want in this case ?
@AmiraBedh Very hard to reach, I wish you had put that as the code. Can you share the sample pbix file to look into it?
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
You can find the link to Google Drive : https://drive.google.com/drive/folders/1-rk-VKwYrGdbY7q_cjk_3TlBbAtH3U-H?usp=sharing
@AmiraBedh that's interesting. Can you get the DAX query for both cases using a performance analyzer to see what is happening behind the scenes.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 34 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 37 | |
| 35 | |
| 25 |