Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Easley06
Helper II
Helper II

getting percentage in matrix

Hi,

 

would like to ask help for this problem i have matrix table but i want to put it in measure getting only the percentage of  1 and 2 

Easley06_0-1669180675654.png

current measure: 

% policy count = DIVIDE(COUNT(tbl_purchase_journey[chdrnum]),calculate(COUNT(tbl_purchase_journey[chdrnum]),ALL(tbl_purchase_journey[adjusted_issued_within_2_days])),0)
 
the measure will be used as line y-axis 
Easley06_0-1669185906544.png

 

thanks
3 REPLIES 3
FreemanZ
Super User
Super User

you shall be able to filter out the ">2 day" in the filter pane, or 

FreemanZ_0-1669184308475.png

 

or try to wrap your measure with IF condition, like this:

% policy count = 
IF(
    VALUES(tbl_purchase_journey[adjusted_issued_within_2_days]) = "> 2 days",
    BLANK(),
    DIVIDE(
          COUNT(tbl_purchase_journey[chdrnum]),
          CALCUALTE(
                COUNT(tbl_purchase_journey[chdrnum]),
                ALL(tbl_purchase_journey[adjusted_issued_within_2_days])
          ),
          0
    )
)

Hi sir, 

 

i will use the measure for this table. for line y-axis 

Easley06_0-1669185623543.png

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

Top Solution Authors