The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi All,
I got the below query - it works fine in PowerBi but in Excel, I get the error "Invalid Query syntax. A valid MDX or DAX query was expected." - what's going on?
=
SUMMARIZE (
Table14,
Table14.[X],
Table14.[Y],
Table14.[Z],
"Start Date", MIN ( Table14[Received on] ),
"End Date", MAX ( Table14[Received on] ),
"Male", CALCULATE ( COUNT ( Table14[Gender] ), Table14[Gender] = "1" ),
"Female", CALCULATE ( COUNT ( Table14[Gender] ), Table14[Gender] = "2" ),
"Indicator", "SALES",
"Location", IF ( Table14[Z] = "A", "A", "Other" )
)
Best,
Dat_Data
Hi,
what is the context for this error? Are you trying to use the same code in Excel Power Pivot?
-s
Hi @sturlaws
I'm trying to run this through DAX studio on Excel but I also get a similar response with Power Pivot.
Best,
Dat_Data
User | Count |
---|---|
15 | |
13 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
19 | |
13 | |
9 | |
5 |