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'm trying to create a measure on DAX that have to subtract 2 measures from a constant (that is 14). The problem is that when I calculate it it duplicates the results row. Here's the formula:
Missed flows = (14 - CALCULATE( DMSFact'[# Not Available] ) )-'DMSFact'[Dealer_TOT_Y]
where
# Not Available and Dealer_TOT_Y are two count measure:
Dealer_TOT_Y =
CALCULATE(COUNT('DMSFact'[Dealer Int])
,'DMSFact'[Dealer Int]="Y"
,GROUPBY('DMSFact','DMSFact'[Dealer Code]))
# Not Available =
CALCULATE(COUNT('DMSFact'[Flag NotAvailable])
,'DMSFact'[Flag NotAvailable]="Y"
)
The result I want to display is the Missed flows for each dealer, in such a form:
Insted I get this:
Solved! Go to Solution.
Hi @MarcoT
Please use
Missed flows =
VAR NotAvilable = [# Not Available]
VAR Dealer = [Dealer_TOT_Y]
RETURN
IF (
NOT ISBLANK ( NotAvilable ) || NOT ISBLANK ( Dealer ),
14 - NotAvilable - Dealer
)
Hi @MarcoT
Please use
Missed flows =
VAR NotAvilable = [# Not Available]
VAR Dealer = [Dealer_TOT_Y]
RETURN
IF (
NOT ISBLANK ( NotAvilable ) || NOT ISBLANK ( Dealer ),
14 - NotAvilable - Dealer
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |