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.
Hello everyone!!
i just wanted to know can we take union of two or multiple tables at runtime in a measure
if yes then how?
also if that is not possible than how can i solve a scenerio in which i want to get real time data based on the date selected by user but i cannot do that because dynamic m query can only be supported on the data that is fetched using direct query and direct query feature is not supported with mysql.
kindly help!!
Hi @Anonymous ,
"i just wanted to know can we take union of two or multiple tables at runtime in a measure"
NO, it's impossible. Measure can only return a dynamic value, not a dynamic table.
For how to use "Direct Query" mode to connect to mysql, you can refer to this article.
DirectQuery DataDirect ODBC drivers in Power BI
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous , Actually you can do using union , may be just add measures from two tables.
Like I have table Table A and B joined to C(Dimension) and have column sales, this will union all data
New Sales = Sum(A[Sales]) + sum(B[Sales])
Measure =
sumx(union(a,b), [sales])
You can also union specific columns.
what is the formula required ?
@amitchandak i want union of two table based on selected month from user i.e.
Can you provide some sample data to work with?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
101 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |