Forum Discussion
Matrix Visualisation to filter on 2 date values
- 2 years ago
Active Training Dates = CALCULATE( DISTINCTCOUNT(FactSupply[Contractor__c]), TREATAS(values(TrainingDates[Date]),FactSupply[Training_Date__c]) )I don't think I fully understand the premise - feel free to modify
Hi Richard_Halsall ,
First of all, thank you lbendlin for the quick reply. Did the reply help you solve your problem? If so, please mark it as a solution. If not, you can try the following:
(1) Create a column.
_StatusWithProject = VALUE( IF('Table'[Project_Detail__c]=BLANK(),"0",[StatusWithProject]))
(2) Create a date table.
Date = CALENDAR(DATE(2024,1,1),DATE(2024,12,31))
(3)
If I misunderstand your needs, please clarify them in a follow-up reply.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous lbendlin , thank you both for your input, I tested both solutions and made progress but still do not have exactly what I require.
Using the disconnected calendar method I have created the TrainingDates table and a Training Dates slicer and this measure
Which returns the correct number of unique technicians with a training date between the Training Dates slicer dates when I place the measure in a card
My requirement is that these 8 technicians only show in the matrix when the status date range is selected - I have tried using the Active Training Dates measure as a visual filter but it doesn't work
Any help would be appreciated. Thanks
- lbendlin2 years ago
Super User
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523- Richard_Halsall2 years ago
Helper IV
- lbendlin2 years ago
Super User
Active Training Dates = CALCULATE( DISTINCTCOUNT(FactSupply[Contractor__c]), TREATAS(values(TrainingDates[Date]),FactSupply[Training_Date__c]) )I don't think I fully understand the premise - feel free to modify