March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Tablemeasure = Union( selectcolumns(Table A,"Opening_Date", Table A[Opening_Date]), selectcolumns(Table B,"Business_Date", Table B[Business_Date]), )
I created a measure using this format above but when I try to put it into a visual I get the error below. Anyone have an idea of what I might be doing wrong?
Solved! Go to Solution.
If you need a list of dates for a visual, create a calculated table instead of a measure :
CombinedDatesTable = UNION(
SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]),
SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])
)
then for the measure :
UniqueDateCount = DISTINCTCOUNT(UNION(SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]), SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])))
If you need a list of dates for a visual, create a calculated table instead of a measure :
CombinedDatesTable = UNION(
SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]),
SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])
)
then for the measure :
UniqueDateCount = DISTINCTCOUNT(UNION(SELECTCOLUMNS(TableA, "Date", TableA[Opening_Date]), SELECTCOLUMNS(TableB, "Date", TableB[Business_Date])))
This is what I created but I'm only getting the Material column in the resulting table?
Can you please share your pbix file ?
Your solution worked, I just had to tweek it a bit for my situation. I accepted your solution.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
89 | |
84 | |
70 | |
51 |
User | Count |
---|---|
206 | |
143 | |
97 | |
79 | |
68 |