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

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

Reply
tsarun1992
Helper I
Helper I

Date data in Direct query

Hello All,

 

I have created a data model in SQL to display LIVE Data of Sales, wherein I have a column of Date. 

The data is pulled into BI using "Direct Query".

Though the date column is in Date Format (Boxed with red on left top), I do not see any option to Drill down using the hierarchy.
As a result, the data is not grouped even with a month (Entries for different date in a month are showing separately) - Take for example September 2023 has 3 different entries, but I need them to be clubbed as you see in second screenshot (Which is done using Import mode)

 

tsarun1992_0-1693983359801.png

tsarun1992_1-1693983595866.png

Can someone provide me a solution to this problem?

6 REPLIES 6
tsarun1992
Helper I
Helper I

That's possible but it isn't considering them as Date / Month / Year though I change the format from Text / Numbers to Date.

Then you can create a year column and month column then put them together with your date column in x axis.

What do you think? It will work as hierarchy as you drill down or up.

Tried that too !! Not working. 

mussaenda
Super User
Super User

Hi @tsarun1992 ,

 

In direct query, you are not allowed to create a calculated column?

Yes we can create calculated columns, but certain DAXes are not allowed to use in Direct query data. The following DAXes are needed for my report but unable to use

 

1. DATEDIFF

2. CONCATENATEX

3. LOOKUPVALUE

Hi @tsarun1992 ,

 

but you can do a column to extract the month, and/or year?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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