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
admin_xlsior
Post Prodigy
Post Prodigy

Add row for Direct query

Hi,

 

Just looking for some ideas, I'm using Direct Query however there is one table that I feel I need to add additional row, at least 1 row.

Take example I have a table for grouping something like :

Group idName
Group01High
Group02Low

 

For some reason, I need to add another row for Group03:Medium, but it is only reside in my Power BI, not in my data source.

Is it possible?

 

Thanks,

1 ACCEPTED SOLUTION

Purely DirectQuery while adding local data sounds contradictory to me. Either add the row in the source or use a mixed mode. To not be mixed mode, you'd need the additional row to be DirectQuery too.

View solution in original post

5 REPLIES 5
Padam
Regular Visitor

You can add a Union statement in the Power Query Editor with your existing query. 
Eg: 

Select distinct Column1 from Table1

UNION

Select "DynamicData" as Column1

amitchandak
Super User
Super User

@admin_xlsior , if you ready to make this table as import mode table you can create a table using enter data with this new entry and append and create a table, that table will be an import mode table. Others can be still direct query

Hi @amitchandak ,

 

Problem is I can't have hybrid/mixed mode. Need to be pure Direct Query mode. That's why whether probably there is some trick to add the row. I'm not sure how, probably from power query first or something else.

 

Thanks,

 

 

Purely DirectQuery while adding local data sounds contradictory to me. Either add the row in the source or use a mixed mode. To not be mixed mode, you'd need the additional row to be DirectQuery too.

Yes, I actually understand this, only try to "push my luck". 😀

Then it is ok. 

Thanks,

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.