Forum Discussion

yachoi's avatar
yachoi
Frequent Visitor
5 years ago
Solved

Divide By Different Aggregations

Hello, Apologies as I am still new to PowerBI. How can I get a divided measure based on 2 fields (Week and Channel)? For example I have: For CPC, I would like Act-Spend/Act-Clicks, which is w...
  • AlexisOlson's avatar
    5 years ago

    How is your average measure defined? If you define it as DIVIDE ( [Act-Spend], [Act-Clicks] ), then you should be fine (assuming you've already defined each of those measures).

  • Ashish_Mathur's avatar
    Ashish_Mathur
    5 years ago

    Hi,

    Use these measures

    Spend = sum(consol[Act-Spend])

    Clicks = sum(consol[Act-clicks])

    CPC = divide([spend],[clicks])

    Hope this helps.