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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Juramirez
Resolver I
Resolver I

Show measure regarding Hierarchy level

Hi all!

 

I have a Hierarchy like this:

      Month

         Day

What I want to do is when user drilldown from month to hierarchy Day, the value changes. 

This is my DataTable:

Fecha(d/m/y)|ValuesPerDay|ValuesPerMonth

01-01-2017|3|50

02-01-2017|4|50

03-01-2017|2|50

01-02-2017|1|40

 

I want to show in month the average of ValuesPerMonth  and for day i want to show each value that corresponds to each day from ValuesPerDay(the Date is in X axis of Line Chart).

How can I do this?

 

Regards,

Julián

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi,

you can use the measure like below which will display sum for individual days and Average for the month.

 

Measure2 = IF(HASONEVALUE('Calendar'[Date].[Day]),SUM(Sales[Revenue]),IF(HASONEVALUE('Calendar'[Month]),SUM(Sales[Revenue])/30,SUM(Sales[Revenue])))

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi,

you can use the measure like below which will display sum for individual days and Average for the month.

 

Measure2 = IF(HASONEVALUE('Calendar'[Date].[Day]),SUM(Sales[Revenue]),IF(HASONEVALUE('Calendar'[Month]),SUM(Sales[Revenue])/30,SUM(Sales[Revenue])))

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.