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!
User | Count |
---|---|
91 | |
90 | |
83 | |
73 | |
49 |
User | Count |
---|---|
167 | |
149 | |
98 | |
73 | |
57 |