Forum Discussion
Sum If - Same Column
- 4 years ago
Hi, I1qq6uyz
According to your description, you want to create a column that shows all the lines that the number is more than the referent column, right?
In the Power BI, you can just use the table chart to display as a new column because this column is filtered by the selection of a slicer. I think you can create a new table and a slicer to filter a table chart to achieve your requirement, you can follow my steps:
Create a calculated table:
Car = SUMMARIZE('Table1',Table1[Car])Create a measure like this:
Flag = var _selectedcolumn=CALCULATE(MAX('Table1'[New Column]),FILTER(ALL('Table1'),[Car]=SELECTEDVALUE('Car'[Car]))) return IF(MAX('Table1'[New Column])>_selectedcolumn,1,0)Then you can create a car slicer to place the column in the new table and a table chart to set the filter and summarize type like this:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, I1qq6uyz
According to your description, you want to create a column that shows all the lines that the number is more than the referent column, right?
In the Power BI, you can just use the table chart to display as a new column because this column is filtered by the selection of a slicer. I think you can create a new table and a slicer to filter a table chart to achieve your requirement, you can follow my steps:
Create a calculated table:
Car = SUMMARIZE('Table1',Table1[Car])
Create a measure like this:
Flag =
var _selectedcolumn=CALCULATE(MAX('Table1'[New Column]),FILTER(ALL('Table1'),[Car]=SELECTEDVALUE('Car'[Car])))
return
IF(MAX('Table1'[New Column])>_selectedcolumn,1,0)
Then you can create a car slicer to place the column in the new table and a table chart to set the filter and summarize type like this:
You can download my test pbix file below
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.