Open samaguire opened 2 years ago
i.e. add this to the start if (!Selected.Measures.Any()) { return; } or if(Selected.Columns.Count == 0 && Selected.Measures.Count == 0) throw new Exception("No columns or measures selected!");
if (!Selected.Measures.Any()) { return; }
if(Selected.Columns.Count == 0 && Selected.Measures.Count == 0) throw new Exception("No columns or measures selected!");
i.e. add this to the start
if (!Selected.Measures.Any()) { return; }
orif(Selected.Columns.Count == 0 && Selected.Measures.Count == 0) throw new Exception("No columns or measures selected!");