Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
srigag900
New Member

Summarizing columns and measures - Power Automate

Hi All,

 

I have the following power automate scrip which really hard to fix. Im out of options. Can anyone help me out in this regard?

DEFINE
VAR TotalFundsOpenInEagle =
IF(
ISBLANK(
CALCULATE(
COUNTA('FundDashboard'[Id]),
FILTER('FundDashboard', 'FundDashboard'[ReadyForProcess] = FALSE)
)
),
0,
CALCULATE(
COUNTA('FundDashboard'[Id]),
FILTER('FundDashboard', 'FundDashboard'[ReadyForProcess] = FALSE)
)
)

VAR TotalFundsCloseInEagle =
IF(
ISBLANK(
CALCULATE(
COUNTA('FundDashboard'[Id]),
FILTER('FundDashboard', 'FundDashboard'[ReadyForProcess] = TRUE)
)
),
0,
CALCULATE(
COUNTA('FundDashboard'[Id]),
FILTER('FundDashboard', 'FundDashboard'[ReadyForProcess] = TRUE)
)
)

EVALUATE

SUMMARIZE (
SELECTCOLUMNS (
'FundDashboard'[FundId],
'FundDashboard'[EntityName],
'FundDashboard'[CurrentStatus],
'FundDashboard'[ReadyForProcess]),
TotalFundsCloseInEagle,
TotalFundsOpenInEagle
)

2 REPLIES 2
v-yifanw-msft
Community Support
Community Support

Thank you @Alex87 for your prompt reply.

Hi @Alex87  ,
May I ask if you have tried the suggestions above? If the suggestion helped you, you might consider marking it as a solution. If the problem has not yet been solved, please feel free to ask us a question.

 

Best Regards,

Ada Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Alex87
Resolver III
Resolver III

The error might come from Summarize(Selectcolumns. and from the last two variables.

try if this works better

 

DEFINE
VAR TotalFundsOpenInEagle =
CALCULATE(
COUNTA('FundDashboard'[Id]),
'FundDashboard'[ReadyForProcess] = FALSE
)

VAR TotalFundsCloseInEagle =
CALCULATE(
COUNTA('FundDashboard'[Id]),
'FundDashboard'[ReadyForProcess] = TRUE
)

EVALUATE
SUMMARIZE (
'FundDashboard',
'FundDashboard'[FundId],
'FundDashboard'[EntityName],
'FundDashboard'[CurrentStatus],
'FundDashboard'[ReadyForProcess],
"Total Funds Closed", TotalFundsCloseInEagle,
"Total Funds Open", TotalFundsOpenInEagle
)

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.