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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
marcos_osorio
Helper II
Helper II

Filter/Calculate Problem

HI, I'm having a problem and I would like to know if you can help me.

 

I have to resume the sales vs Budgets for our companny.

 

My boss asked to do something like this:

pobi.png

The problem is that in the database I have a [Type] field of the records (Sold, Budget 1, Budget 2, Budget 3, Budget 4) and a Type2 that marks as Budget when is B1, 2, 3 or 4.

If I try to make something like this by Type2 , Qtty is ok but for Budget because It sum all budgets, and I couldn't make a filter to act in the case of the Type2 = Budget filtering by the Slicer.   Is there a Way to solve it?

 

I already made measures only for Sold and Budget(this one using hasonfiltered and Switch to display the right budget amount.)  But is there a way to group them?

 

Thank you in advance.

 

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@marcos_osorio .

 

I doubt you can the exact format. you can try workaround bt create a table like this and display

union(
summarize(table,table[Type],"Measure","Qty", "Budget",[Budget], "Sold",[Sold],  "diff",[diff]",diff %",[dif%]),
summarize(table,table[Type],"Measure","Amnt", "Budget",[Budget], "Sold",[Sold],  "diff",[diff]",diff %",[dif%])
)

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@marcos_osorio .

 

I doubt you can the exact format. you can try workaround bt create a table like this and display

union(
summarize(table,table[Type],"Measure","Qty", "Budget",[Budget], "Sold",[Sold],  "diff",[diff]",diff %",[dif%]),
summarize(table,table[Type],"Measure","Amnt", "Budget",[Budget], "Sold",[Sold],  "diff",[diff]",diff %",[dif%])
)
v-shex-msft
Community Support
Community Support

HI @marcos_osorio,

Can you please share some sample data for test? It will help to test and coding formulas.

How to Get Your Question Answered Quickly 

In addition, you can also take a look at the following link about the total level measure calculate:

Measure Totals, The Final Word  

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

The nearest solution I can think of now is

https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/50...

 

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

 

 

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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