Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Good afternoon,
I have the following calculation
Match Up Count Rows = CALCULATE(COUNTROWS('Game Fact'),FILTER('Game Fact','Game Fact'[Game Board]IN ALLSELECTED('Game Fact'[Game Board])))
If I place that measure in a table with Game ID, I get the following:
Is there a way that I can store the Game IDs where the Result is equal to 22 into a variable? I would then like to be able to use that variable as part of a FILTER component for further CALCULATE expressions?
Kind regards,
Paul
Solved! Go to Solution.
You could use something like this, also you can replace the whole FILTER with KEEPFILTERS and ALLSELECTED.
Match Up Count Rows =
VAR Something =
FILTER (
VALUES ( GameID ),
CALCULATE (
COUNTROWS ( 'Game Fact' ),
KEEPFILTERS ( ALLSELECTED ( 'Game Fact'[Game Board] ) )
) = 22
)
RETURN
Something
You could use something like this, also you can replace the whole FILTER with KEEPFILTERS and ALLSELECTED.
Match Up Count Rows =
VAR Something =
FILTER (
VALUES ( GameID ),
CALCULATE (
COUNTROWS ( 'Game Fact' ),
KEEPFILTERS ( ALLSELECTED ( 'Game Fact'[Game Board] ) )
) = 22
)
RETURN
Something
This is brilliant, thank you so much.
Kind regards,
Paul
You're welcome! 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
96 | |
69 | |
44 | |
38 | |
29 |
User | Count |
---|---|
154 | |
93 | |
63 | |
42 | |
41 |