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
vipinkmathews
Helper I
Helper I

How to create measure in Direct Queries

Hi

I tried to create running total & variance on direct query dataset which is not possible.

 

Is there any alternative to create running total or measures using direct query?

 

Regards

Vipinrunningtotal.jpg

 

variance.jpg

 

2 ACCEPTED SOLUTIONS
MFelix
Super User
Super User

Hi @vipinkmathews,

 

You need to go to:

File > Options and then Settings > Options and settings > DirectQuery, then selecting the option *Allow unrestricted measures in DirectQuery mode**. 

 

Just look at this link to see the vantages/ disavantages and options you have with direct query.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

5 REPLIES 5
Rhyndra
New Member

@MFelix  I don't believe this is still a valid solution with the most recent version of PowerBI Desktop.

 

Would you know of any other solutions, if not, what version of PowerBI Desktop has this previously worked on and I'll see if I can work around that.

 

Thanks!

Hi @Rhyndra ,

 

You are correct that the option for the Unresctrited Measure is no longer available, with the introduction of composite models (July 2018), this "unrestricted measures" is implicitly on.  Since there is nothing to choose, they removed the checkbox from the options dialogue due to the composite models.

 

So currently this is active by default, so you can make measures on direct query.

 

Regards

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



MFelix
Super User
Super User

Hi @vipinkmathews,

 

You need to go to:

File > Options and then Settings > Options and settings > DirectQuery, then selecting the option *Allow unrestricted measures in DirectQuery mode**. 

 

Just look at this link to see the vantages/ disavantages and options you have with direct query.

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you very much @MFelix

Hi @vipinkmathews,

 

Do you still have any question on this issue? If not, could you accept the reply from @MFelix as solution to close this thread? Smiley Happy

 

Regards

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.