Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
I have two tables that are linked:
The link between them is UniqueID. I want to create a Measure where I count the total of rows in Software which the Status.Status is "AUTHORIZED". How can I do that?
Solved! Go to Solution.
There are a few ways you can do this, depending on how your relationships directions are set up.
Option 1
MeasureName = CALCULATE( COUNTROWS(Software), FILTER(Software, RELATED(Status[Status]) = "AUTHORIZED) )
--- OR ---
MeasureNameOptimized = CALCULATE( COUNTROWS( FILTER(Software, RELATED(Status[Status]) = "AUTHORIZED") ) )
Option 2
MeasureName = CALCULATE( COUNTROWS(Software), FILTER(Status, Status[Status] = "AUTHORIZED") )
There are a few ways you can do this, depending on how your relationships directions are set up.
Option 1
MeasureName = CALCULATE( COUNTROWS(Software), FILTER(Software, RELATED(Status[Status]) = "AUTHORIZED) )
--- OR ---
MeasureNameOptimized = CALCULATE( COUNTROWS( FILTER(Software, RELATED(Status[Status]) = "AUTHORIZED") ) )
Option 2
MeasureName = CALCULATE( COUNTROWS(Software), FILTER(Status, Status[Status] = "AUTHORIZED") )
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.