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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
admin_xlsior
Post Prodigy
Post Prodigy

Direct Query : trick to add rows ?

Dear friends,

 

In Direct Query (as I know of), we cannot add our own rows as all is from the "live" data source, and we cannot add table as well, unless the table is derived or manipulated from existing data.

 

Now I have an issue with my Status Order, like a common status, it would be something like : Ordered, In Stock, In Production, In Transit, Delivered, Invoiced. The issue is sometimes my data doesn't have all the statuses, and when it happened obviously the visual will only show whatever statuses we have. My expectation is, even when it's not exist, I can still show the statuses in my Visual. But as mentioned, for Direct Query, I cannot just create new table then input all my status over there (to make relation later)

 

I created a Group, when in my data have all those statuses, and put as below :

admin_xlsior_0-1635683360281.png

But turn out, when my data now don't have some of the status, the Group is not all showing, in the image we can see also some of the member values are slight dimmed/ blur, it is becase it is not exist at the moment.

 

Is there a trick that we can have those statuses in complete list ? or the only way is get the Status list from the data source ?

 

Thanks,

1 ACCEPTED SOLUTION

If you must use pure DirectQuery, then you need to have a DirectQuery source that has all the things you need. It can still be a separate table but without composite modeling, it has to come from the source.

View solution in original post

3 REPLIES 3
Greg_Deckler
Community Champion
Community Champion

@admin_xlsior Sounds like you need to create a composite model and perhaps use an Enter Data query to add the all of the statuses to that.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yeah, but too bad, as I'm gonna use this report in my ERP, and it is demand to use pure Direct Query, cannot choose composite.

 

Can something in the Power Query do something about this ? 

Thanks

If you must use pure DirectQuery, then you need to have a DirectQuery source that has all the things you need. It can still be a separate table but without composite modeling, it has to come from the source.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors