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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
Mike1990
Frequent Visitor

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 9
Mike1990
Frequent Visitor

Can you send me the new formule if that's possible?

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'))
)

i'm still getting 23K of rows en not the 57K of rows? 😞

That means you are using a different query to get the 57k rows. Find that query.

lbendlin
Super User
Super User

How many rows do you get when you run this in the Power BI Desktop DAX Query view?

Hi @lbendlin ,

 

For now it's 26K rows.

So your query does what you asked it to do but not what you wanted it to do?

Not really, i asked it to put all the rows in the csv (60K) but it only sends me the 26k of rows?

You are running a DAX query against multiple tables with oodles of filters.  The query engine will give you the results based on your query.  If you wanted "just the rows of the table" you would have said (for example) 

 

EVALUATE 'TASK'

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.