Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Solved! Go to Solution.
Your Calculated column name is - "PoInactive".
PoInactive return value 1 OR -1.
if Count of rows in new_revenuerecognitions which having status " Active" and if count = 0 then return 1 else -1 value.
CALCULATE: Evaluates an expression in a context modified by filters.
COUNTROWS : function counts the number of rows in the specified table, or in a table defined by an expression
FILTER: You can use FILTER to reduce the number of rows in the table that you are working with, and use only specific data in calculations
ALLSELECTED : ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries
PoInactive =
IF(
CALCULATE(
COUNTROWS(new_revenuerecognitions),
FILTER(
ALLSELECTED(new_revenuerecognitions),
'new_revenuerecognitions' [PO_Name] in FILTERS(
'new_revenuerecognitions' [PO_Name]
) && 'new_revenuerecognitions' [Status] = "Active"
)
)= 0,
1,
-1
)
Your Calculated column name is - "PoInactive".
PoInactive return value 1 OR -1.
if Count of rows in new_revenuerecognitions which having status " Active" and if count = 0 then return 1 else -1 value.
CALCULATE: Evaluates an expression in a context modified by filters.
COUNTROWS : function counts the number of rows in the specified table, or in a table defined by an expression
FILTER: You can use FILTER to reduce the number of rows in the table that you are working with, and use only specific data in calculations
ALLSELECTED : ALLSELECTED function gets the context that represents all rows and columns in the query, while keeping explicit filters and contexts other than row and column filters. This function can be used to obtain visual totals in queries
PoInactive =
IF(
CALCULATE(
COUNTROWS(new_revenuerecognitions),
FILTER(
ALLSELECTED(new_revenuerecognitions),
'new_revenuerecognitions' [PO_Name] in FILTERS(
'new_revenuerecognitions' [PO_Name]
) && 'new_revenuerecognitions' [Status] = "Active"
)
)= 0,
1,
-1
)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
93 | |
77 | |
65 | |
53 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |