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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Kudoed Authors