Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 58 | |
| 51 | |
| 39 | |
| 29 | |
| 24 |