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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
utsavlexmark
Helper III
Helper III

Creating a Customized Measure

Hello All,

I have a table as follows:

Campaign-IDMonthYearURLUnique Visitors(Total)Unique Visitors(Campaign Traffic)
abcdJan2024a.com1000400
efghJan2024a.com1000300
ijklJan2024a.com1000200
mnopFeb2024a.com700350
qrstFeb2024a.com700250
uvwxFeb2024a.com700150

Now the requirement is 
1. Total for column "Unique Visitors(Total)" will show 1700 (a.com for Jan 1000+a.com for Feb 700) - but it is showing 5100.

2.  Need to create a measure for contribution Campaign Traffic in total traffic.

Please suggest some technique.

Regards

Utsav

2 REPLIES 2
Anonymous
Not applicable

Hi, @utsavlexmark 

 

Regarding the second question, what is your desired output?

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

shafiz_p
Super User
Super User

Hi @utsavlexmark  Try this for Unique Visitors(Total):

Unique Visitors(Total)=
SUMX(
    SUMMARIZE(
        'Table',
        'Table'[Month],
        "DistinctValue", MAX('Table'[Unique Visitors(Total)])
    ),
    [DistinctValue]
)
 
Hope this helps!!
If this solved your problem, Please accept it as a solution!!

Best Regards,
Shahariar Hafiz

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.