Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
Hi there,
I got a data which contains the registration number and authorisation type of the registration number. I want to calculate the no of registration number that are holding two types of authorisation types i.e. LAT and PROV or LAT and Tōmua/Prov. I created a measure as follow:
Solved! Go to Solution.
I'm not sure I'm interpreting your question correctly, but maybe this will be closer to what you're after:
Two types =
SUMX (
VALUES ( Authorisation[Individual__r.Registration_Number__c] ),
IF (
CALCULATE (
DISTINCTCOUNT ( Authorisation[Authorisation_Type__c] ),
Authorisation[Authorisation_Type__c] IN { "LAT", "PROV", "Tōmua/Prov" }
) = 2,
1,
0
)
)
Hi,
Since you have not described what you want, i am just making a guess of desired result. Try this measure
2 types try = SUMX(VALUES(Sheet1[Registration_Number__c]),
VAR _auth = CALCULATE(MAX(Sheet1[Authorisation_Type__c]))
RETURN IF(_auth="LAT" || (_auth = "PROV" || _auth = "Tōmua/Prov") ,1,0))
The result i get is 26,566
This is returning 0 because the single-value-variable _auth cannot logically equal "LAT" and any other value at the same time.
Also, looking at your data, each Registration_Number__c occurs only in a single row, so I don't see how it can be associated with more than one authorization type.
@AlexisOlson , Sorry I updated the data sample and also updated the measure but still getting the same result i.e. 0
I'm not sure I'm interpreting your question correctly, but maybe this will be closer to what you're after:
Two types =
SUMX (
VALUES ( Authorisation[Individual__r.Registration_Number__c] ),
IF (
CALCULATE (
DISTINCTCOUNT ( Authorisation[Authorisation_Type__c] ),
Authorisation[Authorisation_Type__c] IN { "LAT", "PROV", "Tōmua/Prov" }
) = 2,
1,
0
)
)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
69 | |
66 | |
50 | |
32 |
User | Count |
---|---|
116 | |
99 | |
75 | |
65 | |
40 |