Forum Discussion
Group BY
- 4 years ago
Hi Anonymous,
ronrsnfld asked a very valid question :). Do you want to do OR or AND or something else? Also you are referring to a DAX formula, but the Errors and screenshots seems to be from Power Query.
This PQ code does OR on [Open], to make it ANDjust change List.Max to List.Min. Or do you need something else to happen on grouping (or do you need this in DAX)?
Table.Group(Source, {"Account"}, {{"Count", each Logical.From(List.Max(List.Transform([Open], each Number.From(Logical.From(_))))), type logical}})Cheers,
John
- 4 years ago
Hi Anonymous,
This is opening/closing brackets issue around this place: type logical}}), {{"Closed". At first sight, the formula should look like this:
Table.Group(#"Removed Columns", {"Account Name"}, {{"Open",each Logical.From(List.Max(List.Transform([Open], each Number.From(Logical.From(_))))), type logical}, {"Closed", each Logical.From(List.Max(List.Transform([Closed], each Number.From(Logical.From(_))))), type logical}})I did not test it, but should work by the lok of it.
Kind regards,
John
I cannot provide you the dataset since its confidential. But for your understanding I need to know tw DAX formula which will help me capture data for accounts name that are open or closed. Whereever they are open, it will show as TRUE & wherever it is closed it will show as TRUE. And Blank for False instead of NULL.
Since you apparently feel that even with "made-up" data, any sample you provide would breach confidentiality, I have nothing to add beyond what is in my previous posting. If that is not working, consider hiring a consultant and having him sign an NDA.