Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have 2 questions. I need to create 2 measures from text columns and display as cards ignoring the slicer.
I have a table UPS, it has a Location colum and Maintenance Bypass column (Text) & Dual UPS column (Text).
| Location | Maintenance Bypass | Dual UPS |
| city1 | Yes | n/a |
| city3 | Yes | n/a |
| city3 | Yes | Yes |
| city4 | No | n/a |
Measure1 = percentage of locations that do not have Maintenance Bypass, ignoring the location slicer selection
Measure2 = percentage of locations that have Dual UPS, ignoring the location slicer selection.
Thnaks in Advance.
Solved! Go to Solution.
Hi @cghanta Try these please
Measure1 =
VAR TotalLocations = COUNTROWS(ALL(UPS))
VAR NoMaintenanceBypass = COUNTROWS(
FILTER(ALL(UPS), UPS[Maintenance Bypass] = "No")
)
RETURN
DIVIDE(NoMaintenanceBypass, TotalLocations, 0) * 100Measure2 =
VAR TotalLocations = COUNTROWS(ALL(UPS))
VAR WithDualUPS = COUNTROWS(
FILTER(ALL(UPS), UPS[Dual UPS] = "Yes")
)
RETURN
DIVIDE(WithDualUPS, TotalLocations, 0) * 100
Thanks for sharing
Thank you.
Hi @cghanta Try these please
Measure1 =
VAR TotalLocations = COUNTROWS(ALL(UPS))
VAR NoMaintenanceBypass = COUNTROWS(
FILTER(ALL(UPS), UPS[Maintenance Bypass] = "No")
)
RETURN
DIVIDE(NoMaintenanceBypass, TotalLocations, 0) * 100Measure2 =
VAR TotalLocations = COUNTROWS(ALL(UPS))
VAR WithDualUPS = COUNTROWS(
FILTER(ALL(UPS), UPS[Dual UPS] = "Yes")
)
RETURN
DIVIDE(WithDualUPS, TotalLocations, 0) * 100
Hi @Akash_Varuna
for the Measure2, the Maintenance Bypass value has changed from No to Yes for city4, and it is displaying (Blank) value, how can I display it as 0.00 instead.
for the Measure1, how can I exclude a location city1
thank you in advance
the following mesaure works,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |