Forum Discussion
Not all rows in Power automate output
Hi All,
I''m only getting 26K rows instead of the 60K rows what''s in the table from my power bi, what am i doing wrong in the query?
// DAX Query
DEFINE
VAR __DS0FilterTable =
TREATAS({"INSTALL"}, 'TASK'[type])
VAR __DS0FilterTable2 =
TREATAS({"T-Mobile",
"Fiber Operator"}, 'TASK'[recipient_name])
VAR __DS0FilterTable3 =
TREATAS(
{"CONFIRMED",
"ON_HOLD",
"PREPARED",
"TO_BE_CANCELLED",
"WIP",
"RECEIVED"},
'TASK'[status_name]
)
VAR __DS0Core =
SELECTCOLUMNS(
KEEPFILTERS(
FILTER(
KEEPFILTERS(
SUMMARIZECOLUMNS(
'TASK'[search_code],
'TASK'[status_name],
'TASK'[till_date],
'AC'[Contractgebied],
'AC'[Aannemer],
'TASK'[type],
'TASK'[created],
'TASK'[comments],
'RFA'[RFA status],
'TASK'[(Plannedverleden)],
'AC'[BAGgebouwtype],
'TASK'[HOLDCODE],
'TASK'[OrderType],
'TASK'[id],
'AC'[Opleverstatus],
'TASK'[prev_pop],
'AC'[PandID all],
'AC'[Doc Status],
'TASK'[Aantal x Hold],
'AC'[DP nummer (ODF-TM)],
'AC'[Street],
'AC'[House nr.],
'AC'[Extension],
'AC'[Room],
'AC'[City],
'AC'[RNA totaal],
'AC'[HASdatumsAll],
'PLM'[MSA],
'TASK'[Taaktype],
__DS0FilterTable,
__DS0FilterTable2,
__DS0FilterTable3,
"CountRowsTASK", CALCULATE(COUNTROWS('TASK'))
)
),
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
OR(
NOT(ISBLANK('TASK'[search_code])),
NOT(ISBLANK('TASK'[status_name]))
),
NOT(ISBLANK('TASK'[till_date]))
),
NOT(ISBLANK('AC'[Contractgebied]))
),
NOT(ISBLANK('AC'[Aannemer]))
),
NOT(ISBLANK('TASK'[type]))
),
NOT(ISBLANK('TASK'[created]))
),
NOT(ISBLANK('TASK'[comments]))
),
NOT(ISBLANK('RFA'[RFA status]))
),
NOT(ISBLANK('TASK'[(Plannedverleden)]))
),
NOT(ISBLANK('AC'[BAGgebouwtype]))
),
NOT(ISBLANK('TASK'[HOLDCODE]))
),
NOT(ISBLANK('TASK'[OrderType]))
),
NOT(ISBLANK('TASK'[id]))
),
NOT(ISBLANK('AC'[Opleverstatus]))
),
NOT(ISBLANK('TASK'[prev_pop]))
),
NOT(ISBLANK('AC'[PandID all]))
),
NOT(ISBLANK('AC'[Doc Status]))
),
NOT(ISBLANK('TASK'[Aantal x Hold]))
),
NOT(ISBLANK('AC'[DP nummer (ODF-TM)]))
),
NOT(ISBLANK('AC'[Street]))
),
NOT(ISBLANK('AC'[House nr.]))
),
NOT(ISBLANK('AC'[Extension]))
),
NOT(ISBLANK('AC'[Room]))
),
NOT(ISBLANK('AC'[City]))
),
NOT(ISBLANK('AC'[RNA totaal]))
),
NOT(ISBLANK('AC'[HASdatumsAll]))
),
NOT(ISBLANK('PLM'[MSA]))
),
NOT(ISBLANK('TASK'[Taaktype]))
)
)
),
"'TASK'[search_code]", 'TASK'[search_code],
"'TASK'[status_name]", 'TASK'[status_name],
"'TASK'[till_date]", 'TASK'[till_date],
"'AC'[Contractgebied]", 'AC'[Contractgebied],
"'AC'[Aannemer]", 'AC'[Aannemer],
"'TASK'[type]", 'TASK'[type],
"'TASK'[created]", 'TASK'[created],
"'TASK'[comments]", 'TASK'[comments],
"'RFA'[RFA status]", 'RFA'[RFA status],
"'TASK'[(Plannedverleden)]", 'TASK'[(Plannedverleden)],
"'AC'[BAGgebouwtype]", 'AC'[BAGgebouwtype],
"'TASK'[HOLDCODE]", 'TASK'[HOLDCODE],
"'TASK'[OrderType]", 'TASK'[OrderType],
"'TASK'[id]", 'TASK'[id],
"'AC'[Opleverstatus]", 'AC'[Opleverstatus],
"'TASK'[prev_pop]", 'TASK'[prev_pop],
"'AC'[PandID all]", 'AC'[PandID all],
"'AC'[Doc Status]", 'AC'[Doc Status],
"'TASK'[Aantal x Hold]", 'TASK'[Aantal x Hold],
"'AC'[DP nummer (ODF-TM)]", 'AC'[DP nummer (ODF-TM)],
"'AC'[Street]", 'AC'[Street],
"'AC'[House nr.]", 'AC'[House nr.],
"'AC'[Extension]", 'AC'[Extension],
"'AC'[Room]", 'AC'[Room],
"'AC'[City]", 'AC'[City],
"'AC'[RNA totaal]", 'AC'[RNA totaal],
"'AC'[HASdatumsAll]", 'AC'[HASdatumsAll],
"'PLM'[MSA]", 'PLM'[MSA],
"'TASK'[Taaktype]", 'TASK'[Taaktype]
)
VAR __DS0PrimaryWindowed =
TOPN(
150000,
__DS0Core,
'TASK'[search_code],
1,
'TASK'[status_name],
1,
'TASK'[till_date],
1,
'AC'[Contractgebied],
1,
'AC'[Aannemer],
1,
'TASK'[type],
1,
'TASK'[created],
1,
'TASK'[comments],
1,
'RFA'[RFA status],
1,
'TASK'[(Plannedverleden)],
1,
'AC'[BAGgebouwtype],
1,
'TASK'[HOLDCODE],
1,
'TASK'[OrderType],
1,
'TASK'[id],
1,
'AC'[Opleverstatus],
1,
'TASK'[prev_pop],
1,
'AC'[PandID all],
1,
'AC'[Doc Status],
1,
'TASK'[Aantal x Hold],
1,
'AC'[DP nummer (ODF-TM)],
1,
'AC'[Street],
1,
'AC'[House nr.],
1,
'AC'[Extension],
1,
'AC'[Room],
1,
'AC'[City],
1,
'AC'[RNA totaal],
1,
'AC'[HASdatumsAll],
1,
'PLM'[MSA],
1,
'TASK'[Taaktype],
1
)
EVALUATE
__DS0PrimaryWindowed
ORDER BY
'TASK'[search_code],
'TASK'[status_name],
'TASK'[till_date],
'AC'[Contractgebied],
'AC'[Aannemer],
'TASK'[type],
'TASK'[created],
'TASK'[comments],
'RFA'[RFA status],
'TASK'[(Plannedverleden)],
'AC'[BAGgebouwtype],
'TASK'[HOLDCODE],
'TASK'[OrderType],
'TASK'[id],
'AC'[Opleverstatus],
'TASK'[prev_pop],
'AC'[PandID all],
'AC'[Doc Status],
'TASK'[Aantal x Hold],
'AC'[DP nummer (ODF-TM)],
'AC'[Street],
'AC'[House nr.],
'AC'[Extension],
'AC'[Room],
'AC'[City],
'AC'[RNA totaal],
'AC'[HASdatumsAll],
'PLM'[MSA],
'TASK'[Taaktype]
9 Replies
- lbendlin
Super User
How many rows do you get when you run this in the Power BI Desktop DAX Query view?
- Mike1990Frequent Visitor
Can you send me the new formule if that's possible?
- lbendlin
Super User
EVALUATE SUMMARIZECOLUMNS( 'TASK'[search_code], 'TASK'[status_name], 'TASK'[till_date], 'AC'[Contractgebied], 'AC'[Aannemer], 'TASK'[type], 'TASK'[created], 'TASK'[comments], 'RFA'[RFA status], 'TASK'[(Plannedverleden)], 'AC'[BAGgebouwtype], 'TASK'[HOLDCODE], 'TASK'[OrderType], 'TASK'[id], 'AC'[Opleverstatus], 'TASK'[prev_pop], 'AC'[PandID all], 'AC'[Doc Status], 'TASK'[Aantal x Hold], 'AC'[DP nummer (ODF-TM)], 'AC'[Street], 'AC'[House nr.], 'AC'[Extension], 'AC'[Room], 'AC'[City], 'AC'[RNA totaal], 'AC'[HASdatumsAll], 'PLM'[MSA], 'TASK'[Taaktype], TREATAS({"INSTALL"}, 'TASK'[type]), TREATAS({"T-Mobile","Fiber Operator"}, 'TASK'[recipient_name]), TREATAS({"CONFIRMED","ON_HOLD","PREPARED","TO_BE_CANCELLED","WIP","RECEIVED"},'TASK'[status_name] ), "CountRowsTASK", CALCULATE(COUNTROWS('TASK')) )- Mike1990Frequent Visitor
i'm still getting 23K of rows en not the 57K of rows? 😞