This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Experts
Getting the following error message when using calculate column measre with DirectQuery.....is there a work around
Solved! Go to Solution.
Hi @Anonymous ,
Try like following ,if not work ,could you pls share your pbix file?Remember to remove confidential data.
MDX:
AOV.=
CALCULATE (
SUM ( factsalesordertable[Gross_Order_value] ),
FILTER (
ALL ( 'factsalesordertable' ),
'factsalesordertable'[Gross_Order_Value]
= MAX ( 'factsalesordertable'[Gross_Order_Value] )
)
)
If use sql ,adjust accord the following SQL:(Remember to backup base data table)
Step 1,
Create table table1 as select T.*,SUM(T.Gross_Order_Value) from FACTSalesOrdertable T group by t.*.
Step 2,
drop table1 purge.
Step 3,
alter table table1 rename table.
Wish it is helpful for you!
Best Regards
Lucien
Hi @Anonymous ,
Try like following ,if not work ,could you pls share your pbix file?Remember to remove confidential data.
MDX:
AOV.=
CALCULATE (
SUM ( factsalesordertable[Gross_Order_value] ),
FILTER (
ALL ( 'factsalesordertable' ),
'factsalesordertable'[Gross_Order_Value]
= MAX ( 'factsalesordertable'[Gross_Order_Value] )
)
)
If use sql ,adjust accord the following SQL:(Remember to backup base data table)
Step 1,
Create table table1 as select T.*,SUM(T.Gross_Order_Value) from FACTSalesOrdertable T group by t.*.
Step 2,
drop table1 purge.
Step 3,
alter table table1 rename table.
Wish it is helpful for you!
Best Regards
Lucien
HI @Anonymous ,
There are certain limitations of using Directquery mode in Power BI. One of them is creating calculated columns.
If you want to create a column do it in the source not in Power BI as this is a limitation with DirectQuery mode or you can see if a measure will work for your scenario.
For details check here:
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-directquery
Thanks,
Pragati
Hi - How would i write this as SQL and or MDX.....totally stuck. Please
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 28 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 56 | |
| 48 | |
| 37 | |
| 21 | |
| 20 |