Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I want to calculate a percentage and I want to use the relationship with my Dimdate table so I can use one slicer to select the period.
So, I have a table(FTR) with all completed workorders. The column [Resultaat] gives a YES or NO. I need to know the percentages of YES.
The date field in the FTR table [Datum] is connected to Dimdate[Date] and I want to use this relationship so I can use the Dimdate[Date] slicer.
The measure for the percentage calculation:
Solved! Go to Solution.
Never mind. I just need to add the USERELATIONSHIP (and add a CALCULATE( if I don't have that yet.
So,
Count('FTR'[Resultaat]) will be -> CALCULATE(Count('FTR'[Resultaat]) , USERELATIONSHIP(FTR table[Datum] , Dimdate[Date]))
And,
Never mind. I just need to add the USERELATIONSHIP (and add a CALCULATE( if I don't have that yet.
So,
Count('FTR'[Resultaat]) will be -> CALCULATE(Count('FTR'[Resultaat]) , USERELATIONSHIP(FTR table[Datum] , Dimdate[Date]))
And,
Ofcourse, I will rephrase my question. Also I will give an easier example of a percentage calculation.
I want to calculate a percentage and I want to use the relationship with my Dimdate table so I can use one slicer to select the period.
So I have a table(FTR) with all completed workorders. The column [Resultaat] gives a YES or NO. I need to know the percentages of YES.
The date field in the FTR table [Datum] is connected to Dimdate[Date] and I want to use this relationship so I can use the Dimdate[Date] slicer.
The measure for the percentage calculation:
When you use USERELATIONSHIP(Dimdate[Date], Veiligheidsmeldingen[Datum Relation]) you need in your DAX a usage of the Dimdate[Date]. Perhaps give a full example what you want to do. This is very complicated without some underlaying data, tables. I see so many times that the real question and full background comes after 2-3 replies.
Proud to be a Super User!
User | Count |
---|---|
84 | |
82 | |
66 | |
52 | |
46 |
User | Count |
---|---|
100 | |
48 | |
42 | |
39 | |
38 |