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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Beefheart
Helper I
Helper I

Noob Question About TOM

Hello Folks,

 

First, I hope I'm posting in the correct place, if not I'm sorry.

 

I want to access a published PBI dataset in C# using TOM, but I can't seem to find out how you'd query it.
I mean, do you write the query in SQL, Linq, DAX or somthing else?

 

I don't want to do anything too exciting to begin with, just get the items and quantities sold to a given customer in a given date range.

 

Thanks in advance for any help,

 

Beefheart.

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

For that you would use a DAX query.  However, that's not what TOM is about. TOM gives you access to the metadata. For DAX queries you connect to the SSAS instance (XMLA endpoint)

View solution in original post

2 REPLIES 2
Beefheart
Helper I
Helper I

Hi lbendlin,

 

Thank you for the information! To clarify would this be the Microsoft.AnalysisServices.AdomdClient.NetCore.retail.amd64  nuget package?

 

Thank you again for your time,

 

Beefheart

lbendlin
Super User
Super User

For that you would use a DAX query.  However, that's not what TOM is about. TOM gives you access to the metadata. For DAX queries you connect to the SSAS instance (XMLA endpoint)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.