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.
Solved! Go to Solution.
Hi @Diego565324 ,
According to your description, it seems that you want to get the percentage between the cumulative value [MONTO_DEVENGADO] and the sum of [MONTO_PIM]? You can follow the steps below to get it:
1. Create a separated date dimension table(DO NOT create relationship between this date table and fact table)
2. Create a slicer which applied the field [month field] of date dimension table on it
3. Update the formula of measures as below
Acumulado Devengado =
CALCULATE (
SUM ( 'GOBIERNO NACIONAL'[MONTO_DEVENGADO] ),
FILTER (
ALLSELECTED ( 'GOBIERNO NACIONAL' ),
'GOBIERNO NACIONAL'[MES_EJE] <= SELECTEDVALUE ( 'Datetable'[month field] )
)
)
Percentage =
VAR DEVENGADO = [Acumulado Devengado]
VAR PIM =
CALCULATE (
SUM ( 'GOBIERNO NACIONAL'[MONTO_PIM] ),
FILTER (
ALL ( 'GOBIERNO NACIONAL' ),
'GOBIERNO NACIONAL'[MES_EJE] <= SELECTEDVALUE ( 'Datetable'[month field] )
)
)
RETURN
DIVIDE ( DEVENGADO, PIM ) * 100
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and the relationship info between the tables. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @Diego565324 ,
According to your description, it seems that you want to get the percentage between the cumulative value [MONTO_DEVENGADO] and the sum of [MONTO_PIM]? You can follow the steps below to get it:
1. Create a separated date dimension table(DO NOT create relationship between this date table and fact table)
2. Create a slicer which applied the field [month field] of date dimension table on it
3. Update the formula of measures as below
Acumulado Devengado =
CALCULATE (
SUM ( 'GOBIERNO NACIONAL'[MONTO_DEVENGADO] ),
FILTER (
ALLSELECTED ( 'GOBIERNO NACIONAL' ),
'GOBIERNO NACIONAL'[MES_EJE] <= SELECTEDVALUE ( 'Datetable'[month field] )
)
)
Percentage =
VAR DEVENGADO = [Acumulado Devengado]
VAR PIM =
CALCULATE (
SUM ( 'GOBIERNO NACIONAL'[MONTO_PIM] ),
FILTER (
ALL ( 'GOBIERNO NACIONAL' ),
'GOBIERNO NACIONAL'[MES_EJE] <= SELECTEDVALUE ( 'Datetable'[month field] )
)
)
RETURN
DIVIDE ( DEVENGADO, PIM ) * 100
If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and the relationship info between the tables. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
51 | |
27 | |
24 | |
13 | |
8 |
User | Count |
---|---|
74 | |
52 | |
47 | |
16 | |
12 |