We'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
Hi Guys,
my DAX is :
let
Source = Excel.CurrentWorkbook(){[Name="t_SourceVolumes"]}[Content],
#"Merged Queries" = Table.NestedJoin(Source, {"Topology", "Tier"}, t_VolumeCustomizationsSource, {"Topology", "Tier"}, "t_VolumeCustomizationsSource", JoinKind.RightOuter),
#"Filtered Rows" = Table.SelectRows(#"Merged Queries", each ([Function] = "root") and ([TotalServers] = 1)),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"TotalServers", "Ordinal", "OSType", "OSDistro", "OSVersion", "ScalingParadigm", "DeploymentName", "TopologyName", "TierName", "TierFunction", "VolumeDesignKey", "RowMatchVolumeDesign", "VolumeComponent", "ANFDisk", "VolumeProtocolKey", "RowMatchVolumeProtocol", "StorageProtocol", "ProtocolVersion", "VolumeMountOSOptionsKey", "RowMatchVolumeMountOSOptionsKey", "DiskDriveType", "ReplicationScenario", "StorageType", "VolumeSize", "CustomizationKey", "VolumeDesignKeyDefault", "RowMatchVolumeDesignDefault", "PhysicalDiskModelDefault", "MountPathDefault", "NumberOfDisksDefault", "ProviderFSTypeDefault", "ConsumerFSTypeDefault", "VolumeSizeDefault", "DiskKeyDefault", "ScaleDefault", "DefaultKey", "IfCustomized", "t_VolumeCustomizationsSource"}),
#"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"NumberOfDisks (including DiskNumberCapacity)", "NumberOfDisks"}, {"PhysicalDiskModel", "DiskModel"}, {"StorageSelector", "StorageType"}, {"ProviderFSType", "ProviderFileSystemType"}, {"ConsumerFSType", "ConsumerFileSystemType"}, {"DiskSize", "VolumeSizeInGB"}}),
#"Filtered Rows1" = Table.SelectRows(#"Renamed Columns", each true),
#"Filtered Rows2" = Table.SelectRows(#"Filtered Rows1", each [Environment] <> null),
#"Filtered Rows3" = Table.SelectRows(#"Filtered Rows2", each true),
#"Removed Blank Rows" = Table.SelectRows(#"Filtered Rows3", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
#"Removed Blank Rows"
The problem is that in first "Filtered rows" line i am getting one additional row with null in each column. Why?
What is happening. Merged tables are qithout any nulls and filter triggers it somehow...
Furthermore - when i am adding in next step one additional filter to filter out nulls - it is not working! Nulls are still there!
Can anybody help?
Jacek
Solved! Go to Solution.
Hi @jaryszek ,
You have selected "Right Outer (all from second, matching from second)" when merging queries. "Right Outer" will keep all rows from the second table. When you filter columns from the first table, the records from the second table will be retained.
You can try to change the Join Type to "Left Outer" in your scenario.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @jaryszek ,
You have selected "Right Outer (all from second, matching from second)" when merging queries. "Right Outer" will keep all rows from the second table. When you filter columns from the first table, the records from the second table will be retained.
You can try to change the Join Type to "Left Outer" in your scenario.
Best Regards,
Icey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
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 |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 10 | |
| 8 | |
| 7 | |
| 7 | |
| 5 |