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
Syndicate_Admin
Administrator
Administrator

Simulate multi-month pay raises

Hello forum.

It's my first post and I need your help to try to solve this issue.

I'm creating a report to simulate salary increases for more than a month.

I have my calculation base of 1,000,000

To load the months and percentages of increase, I generated 6 numerical interval parameters:

MesNro1 / MesNro2 / MesNro3

Percentage1 / Percentage2 / Percentage3

And with the basis of calculation I generate the measurements:

ValorAum1 / ValorAum2 / ValorAum3

That is, I have the values distributed in 3 different measures and in the parameters the months to be applied.

The expected result would be a table:

MonthNro Percent Value

1 10% 100.000

2 15% 150.000

3 5% 50.000

To be able to use it in visualizations.

How can I generate a table with the values of the 6 parameters?

Thank you!!

1 ACCEPTED SOLUTION
v-jianpeng-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

Based on your description, I have created the following parameter and measure:

vjianpengmsft_0-1710312949300.png

vjianpengmsft_2-1710313209698.png

 

I created this table using the following DAX expression:

Table =
UNION (
    ROW (
        "MonthNro", [MesNro1 Value],
        "Percent", FORMAT ( [Percentage1 Value], "0.00%" ),
        "Value", [ValorAum1]
    ),
    ROW (
        "MonthNro", [MesNro2 Value],
        "Percent", FORMAT ( [Percentage2 Value], "0.00%" ),
        "Value", [ValorAum2]
    ),
    ROW (
        "MonthNro", [MesNro3 Value],
        "Percent", FORMAT ( [Percentage3 Value], "0.00%" ),
        "Value", [ValorAum3]
    )
)

Here are the results:

vjianpengmsft_1-1710313063204.png

I've provided the PBIX file for this time below, and it would be great if I could help you.

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

View solution in original post

2 REPLIES 2
v-jianpeng-msft
Community Support
Community Support

Hi, @Syndicate_Admin 

Based on your description, I have created the following parameter and measure:

vjianpengmsft_0-1710312949300.png

vjianpengmsft_2-1710313209698.png

 

I created this table using the following DAX expression:

Table =
UNION (
    ROW (
        "MonthNro", [MesNro1 Value],
        "Percent", FORMAT ( [Percentage1 Value], "0.00%" ),
        "Value", [ValorAum1]
    ),
    ROW (
        "MonthNro", [MesNro2 Value],
        "Percent", FORMAT ( [Percentage2 Value], "0.00%" ),
        "Value", [ValorAum2]
    ),
    ROW (
        "MonthNro", [MesNro3 Value],
        "Percent", FORMAT ( [Percentage3 Value], "0.00%" ),
        "Value", [ValorAum3]
    )
)

Here are the results:

vjianpengmsft_1-1710313063204.png

I've provided the PBIX file for this time below, and it would be great if I could help you.

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

It's very close. All that remains is for the value of the parameter to be modifiable on a per-screen basis.

Thank you!

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.