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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello,
i changed my data source folder and i keep getting the below error, any ideas what this is?
Too few arguments were passed to the SWITCH function. The minimum argument count for the function is 3. OLE DB or ODBC error: Type mismatch. (Exception from HRESULT: 0x80020005 (DISP_E_TYPEMISMATCH)).
Hi @mmills2018 ,
Check whether the data type of the field has changed after the data source is updated, for example, SUM ('Talent Snapshot'[PME USA Headcount]), the sum can only calculate the numeric type, and if'[PME USA Headcount] becomes Text, there will be a type mismatch.
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hey @mmills2018 ,
can you post the measure that contains the SWITCH function?
It's a little hard to say where the error happens without any details...
Best regards
Denis
pretty much all my measures are using the switch function, below is one of the measures. I am just confused as to why i would get this when changing the folder source, the data itself did not change
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 51 | |
| 42 | |
| 25 | |
| 22 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 54 | |
| 37 | |
| 31 |