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
Hi,
My requirement is create measure which calculate distinct count of rows and i have one date column which i need to check with user selected Date slicer.
Solved! Go to Solution.
Hi @Anonymous ,
Did you create relationship between date table and the fact table in your scenario? Here I created a sample for your reference.
Measure = CALCULATE(DISTINCTCOUNT(NETWORK[Merged Colum]),FILTER('NETWORK','NETWORK'[EFFECTIVE_DT]<=SELECTEDVALUE('Date'[Date])))
Pbix as attached.
Hi,
Create a relationship from the EFFECTIVE_DT column to the Start Date column of the Date Table. Create a slicer and drag Start Date column from the Date Table. Select a Date there. Write these measure
Count = DISTINCTCOUNT(NETWORK[Merged Colum])
CONTROL PROVIDERS = CALCULATE([Count],DATESBETWEEN('Date'[Start_Date],MINX(ALL(Date),'Date'[Start_Date]),MAX('Date'[Start_Date])))
Hope this helps.
Hi,
Create a relationship from the EFFECTIVE_DT column to the Start Date column of the Date Table. Create a slicer and drag Start Date column from the Date Table. Select a Date there. Write these measure
Count = DISTINCTCOUNT(NETWORK[Merged Colum])
CONTROL PROVIDERS = CALCULATE([Count],DATESBETWEEN('Date'[Start_Date],MINX(ALL(Date),'Date'[Start_Date]),MAX('Date'[Start_Date])))
Hope this helps.
Hi @Anonymous ,
Did you create relationship between date table and the fact table in your scenario? Here I created a sample for your reference.
Measure = CALCULATE(DISTINCTCOUNT(NETWORK[Merged Colum]),FILTER('NETWORK','NETWORK'[EFFECTIVE_DT]<=SELECTEDVALUE('Date'[Date])))
Pbix as attached.
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 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |