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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Percentage of 2 visuals with different dates

I would like to create a percentage from 2 count card visuals.

 

Visual 1= 

Oppertunities that are created in 2018 

 

Visual 2=

Oppertunities that are modified to won in 2018

 

I made a sample of the data:

Created on 

Outlet

Modified ByStatus
12-8-2016A13-2-2017won
21-3-2017B12-1-2018open
6-7-2017C31-1-2018won
12-12-2017D21-8-2017open
13-1-2018E13-1-2018won
21-1-2018F21-1-2018open
1-2-2018G1-2-2018open
15-2-2018H1-3-2018won
24-2-2018I24-2-2018open
4-3-2018J4-3-2018open


And Visual 2 would display: 3
In this case Visual 1 would display: 6

 

I want to create a visual that shows the percentage of won oppertunities compared to created oppertunities.

So in this case it would be 50%

The visuals are about the current year and I want them to change automatically in 2019

 

The problem I encounter is that the relationship with my calender table is with 'Created on', However visual 2 works with 'Modified by'

 

I tried te following formula:

CALCULATE(COUNT('Table 1'[Outlet]);'Table 1'[Status]="Won";'Table 1'[Modified by]=YEAR(TODAY())) / CALCULATE(COUNT('Table 1'[Outlet]);'Table 1'[Created on]=YEAR(TODAY()))

However this turns out (BLANK)

 

I hope someone can help me with this!

 

Regards,

Guido 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Anonymous,

Change your DAX to the following:

Measure = CALCULATE(COUNT('Table 1'[Outlet]);'Table 1'[Status]="Won";YEAR('Table 1'[Modified by])=YEAR(TODAY()))/CALCULATE(COUNT('Table 1'[Outlet]);YEAR('Table 1'[Created on])=YEAR(TODAY()))

1.JPG

Regards,
Lydia

View solution in original post

1 REPLY 1
Anonymous
Not applicable

@Anonymous,

Change your DAX to the following:

Measure = CALCULATE(COUNT('Table 1'[Outlet]);'Table 1'[Status]="Won";YEAR('Table 1'[Modified by])=YEAR(TODAY()))/CALCULATE(COUNT('Table 1'[Outlet]);YEAR('Table 1'[Created on])=YEAR(TODAY()))

1.JPG

Regards,
Lydia

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors